mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 17:13:43 +08:00
e37fb3042d
* Remove checkmark for official plugins * Add author for plugin, which is By Discourse for all discourse and discourse-org github plugins * Link to meta topic instead of github repo * Add experimental flag for plugin metadata and show this as a badge on the plugin list if present --------- Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
22 lines
567 B
Ruby
22 lines
567 B
Ruby
# frozen_string_literal: true
|
|
|
|
# name: styleguide
|
|
# about: Preview how Widgets are Styled in Discourse
|
|
# meta_topic_id: 167293
|
|
# version: 0.2
|
|
# author: Robin Ward
|
|
|
|
register_asset "stylesheets/styleguide.scss"
|
|
enabled_site_setting :styleguide_enabled
|
|
hide_plugin
|
|
|
|
load File.expand_path("../lib/styleguide/engine.rb", __FILE__)
|
|
|
|
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")
|
|
end
|
|
end
|