mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:01:26 +08:00
DEV: Apply syntax_tree formatting to plugins/*
This commit is contained in:
@ -8,14 +8,12 @@
|
||||
register_asset "stylesheets/styleguide.scss"
|
||||
enabled_site_setting :styleguide_enabled
|
||||
|
||||
load File.expand_path('../lib/styleguide/engine.rb', __FILE__)
|
||||
load File.expand_path("../lib/styleguide/engine.rb", __FILE__)
|
||||
|
||||
Discourse::Application.routes.append do
|
||||
mount ::Styleguide::Engine, at: '/styleguide'
|
||||
end
|
||||
Discourse::Application.routes.append { mount ::Styleguide::Engine, at: "/styleguide" }
|
||||
|
||||
after_initialize do
|
||||
register_asset_filter do |type, request, opts|
|
||||
(opts[:path] || '').start_with?("#{Discourse.base_path}/styleguide")
|
||||
(opts[:path] || "").start_with?("#{Discourse.base_path}/styleguide")
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user