Commit 5f780d05 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Add css_var and css_mixin sections to doc renderer.

Add CSS files to touch rake task.
parent 2cac599b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -205,7 +205,8 @@ def run_on_touch(*extra_options)
    "#{SDK_DIR}/touch/src/plugins",
    "#{SDK_DIR}/touch/src/util",
    "#{SDK_DIR}/touch/src/widgets",
    "#{SDK_DIR}/touch/src/platform/src"
    "#{SDK_DIR}/touch/src/platform/src",
    "#{SDK_DIR}/touch/resources/themes/stylesheets/sencha-touch/default",
  ].concat(extra_options))

  # Finally copy over the images that documentation links to.
+3 −1
Original line number Diff line number Diff line
@@ -99,6 +99,8 @@ module JsDuck
        {:type => :property, :title => "Properties"},
        {:type => :method, :title => "Methods"},
        {:type => :event, :title => "Events"},
        {:type => :css_var, :title => "CSS Variables"},
        {:type => :css_mixin, :title => "CSS Mixins"},
      ]

      # Skip rendering empty sections
@@ -179,7 +181,7 @@ module JsDuck
        name = @cls[:name]
      end

      if m[:tagname] == :cfg || m[:tagname] == :property
      if m[:tagname] == :cfg || m[:tagname] == :property || m[:tagname] == :css_var
        params = "<span> : #{m[:type]}</span>"
      else
        ps = m[:params].map {|p| render_short_param(p) }.join(", ")