DEV: Apply syntax_tree formatting to plugins/*

This commit is contained in:
David Taylor
2023-01-06 20:42:16 +00:00
parent 93e2dad656
commit 055310cea4
110 changed files with 3712 additions and 3158 deletions

View File

@ -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