Loading lib/jsduck/app_data.rb +1 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ module JsDuck :source => @opts.source, :commentsUrl => @opts.comments_url, :commentsDomain => @opts.comments_domain, :message => @opts.message, } }) + ";\n" File.open(filename, 'w') {|f| f.write(js) } Loading lib/jsduck/options.rb +11 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ module JsDuck attr_accessor :footer attr_accessor :head_html attr_accessor :body_html attr_accessor :message attr_accessor :welcome attr_accessor :guides attr_accessor :videos Loading Loading @@ -99,6 +100,7 @@ module JsDuck @footer = "Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> #{@version}." @head_html = "" @body_html = "" @message = "" @welcome = nil @guides = nil @videos = nil Loading Loading @@ -291,6 +293,15 @@ module JsDuck @body_html += html end opts.on('--message=HTML', "(Warning) message to show prominently.", "", "Useful for warning users that they are viewing an old", "version of the docs, and prividing a link to the new", "version.") do |html| @message += html end opts.on('--welcome=PATH', "File with content for welcome page.", "", Loading template/app/view/cls/Index.js +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ Ext.define('Docs.view.cls.Index', { '{categories}' ); this.data = { notice: Docs.ContentGrabber.get("notice-text"), notice: Docs.data.message || Docs.ContentGrabber.get("notice-text"), categories: Docs.ContentGrabber.get("categories-content") }; Loading Loading
lib/jsduck/app_data.rb +1 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ module JsDuck :source => @opts.source, :commentsUrl => @opts.comments_url, :commentsDomain => @opts.comments_domain, :message => @opts.message, } }) + ";\n" File.open(filename, 'w') {|f| f.write(js) } Loading
lib/jsduck/options.rb +11 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ module JsDuck attr_accessor :footer attr_accessor :head_html attr_accessor :body_html attr_accessor :message attr_accessor :welcome attr_accessor :guides attr_accessor :videos Loading Loading @@ -99,6 +100,7 @@ module JsDuck @footer = "Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> #{@version}." @head_html = "" @body_html = "" @message = "" @welcome = nil @guides = nil @videos = nil Loading Loading @@ -291,6 +293,15 @@ module JsDuck @body_html += html end opts.on('--message=HTML', "(Warning) message to show prominently.", "", "Useful for warning users that they are viewing an old", "version of the docs, and prividing a link to the new", "version.") do |html| @message += html end opts.on('--welcome=PATH', "File with content for welcome page.", "", Loading
template/app/view/cls/Index.js +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ Ext.define('Docs.view.cls.Index', { '{categories}' ); this.data = { notice: Docs.ContentGrabber.get("notice-text"), notice: Docs.data.message || Docs.ContentGrabber.get("notice-text"), categories: Docs.ContentGrabber.get("categories-content") }; Loading