From 40d02e54f2d24eacdfc0b4494aa6368c22830a9e Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Fri, 10 Jun 2011 12:02:39 +0300 Subject: [PATCH] Add configurable footer. Useful for showing some about-information for the docs. Added code to Rakefile to display the current JSDuck revision there. --- Rakefile | 4 ++++ bin/jsduck | 4 ++++ lib/jsduck/app.rb | 3 +++ template/app/view/Viewport.js | 6 ++++++ template/index.html | 3 ++- template/resources/sass/viewport.scss | 14 +++++++++++++- 6 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 0afc3d0b..8d503f4d 100644 --- a/Rakefile +++ b/Rakefile @@ -72,9 +72,11 @@ end desc "Run JSDuck on ExtJS SDK for export" task :export do load_sdk_vars + rev = `git rev-parse HEAD`.slice(0, 7) run_jsduck([ "--title", "Ext JS 4.0.3 API Documentation", + "--footer", "ExtJS 4.0.3 Documentation from Sencha. Generated with JSDuck revison #{rev}", "--extjs-path", "extjs/ext-all.js", "#{SDK_DIR}/extjs/src", "#{SDK_DIR}/platform/src", @@ -92,6 +94,7 @@ end desc "Run JSDuck on ExtJS SDK for export" task :live_docs do load_sdk_vars + rev = `git rev-parse HEAD`.slice(0, 7) analytics = <<-EOHTML