mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
DEV: makes discourse-styleguide core (styleguide) (#10847)
This plugin is only useful for developers, however, making it core allows us to centralize any component modification in one commit. This integration also adds a new site_setting: `styleguide_admin_only` which allows to enable a styleguide on a live site while restricting visibility to admins only. By default, styleguide is disabled.
This commit is contained in:
10
plugins/styleguide/lib/styleguide/engine.rb
Normal file
10
plugins/styleguide/lib/styleguide/engine.rb
Normal file
@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module ::Styleguide
|
||||
PLUGIN_NAME = "styleguide"
|
||||
|
||||
class Engine < ::Rails::Engine
|
||||
engine_name Styleguide::PLUGIN_NAME
|
||||
isolate_namespace Styleguide
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user