Commit 3d9ec45e authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Change default title/header.

To be in sync with the new header style used in docs.sencha.com.
parent 6ef3420b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -78,8 +78,8 @@ module JsDuck
      @version = "3.11.0"

      # Customizing output
      @title = "Sencha Docs - Ext JS"
      @header = "<strong>Sencha Docs</strong> Ext JS"
      @title = "Ext JS - Sencha Docs"
      @header = "<strong>Ext JS</strong> Sencha Docs"
      @footer = "Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> #{@version}."
      @head_html = ""
      @body_html = ""
@@ -181,7 +181,7 @@ module JsDuck

        opts.on('--title=TEXT',
          "Custom title text for the documentation.",
          "Defaults to 'Sencha Docs - Ext JS'", " ") do |text|
          "Defaults to 'Ext JS - Sencha Docs'", " ") do |text|
          @title = text
          @header = text.sub(/^(.*?) +- +/, "<strong>\\1 </strong>")
        end