Loading lib/jsduck/tag_registry.rb +0 −10 Original line number Diff line number Diff line Loading @@ -29,7 +29,6 @@ module JsDuck @html_renderers = [] @html_renderers_sorted = false @member_types = [] @css = [] @tags = [] instantiate_tags(TagLoader.new(load_paths).load_all) Loading Loading @@ -62,10 +61,6 @@ module JsDuck @html_renderers << tag end if tag.css @css << tag.css end @tags << tag end end Loading Loading @@ -119,11 +114,6 @@ module JsDuck @html_renderers end # Returns all the CSS gathered from @css attributes of tags. def css @css.join("\n") end # # Accessors for a single tag # Loading lib/jsduck/web/css.rb +6 −1 Original line number Diff line number Diff line Loading @@ -23,12 +23,17 @@ module JsDuck def all_css [ TagRegistry.css, css_from_tags, Web::ClassIcons.css, Web::MemberIcons.css, @opts.css, ].join end # Returns all the CSS gathered from @css attributes of tags. def css_from_tags TagRegistry.tags.map(&:css).compact.join("\n") end end end Loading Loading
lib/jsduck/tag_registry.rb +0 −10 Original line number Diff line number Diff line Loading @@ -29,7 +29,6 @@ module JsDuck @html_renderers = [] @html_renderers_sorted = false @member_types = [] @css = [] @tags = [] instantiate_tags(TagLoader.new(load_paths).load_all) Loading Loading @@ -62,10 +61,6 @@ module JsDuck @html_renderers << tag end if tag.css @css << tag.css end @tags << tag end end Loading Loading @@ -119,11 +114,6 @@ module JsDuck @html_renderers end # Returns all the CSS gathered from @css attributes of tags. def css @css.join("\n") end # # Accessors for a single tag # Loading
lib/jsduck/web/css.rb +6 −1 Original line number Diff line number Diff line Loading @@ -23,12 +23,17 @@ module JsDuck def all_css [ TagRegistry.css, css_from_tags, Web::ClassIcons.css, Web::MemberIcons.css, @opts.css, ].join end # Returns all the CSS gathered from @css attributes of tags. def css_from_tags TagRegistry.tags.map(&:css).compact.join("\n") end end end Loading