From 10edf604db9485550eecc67895ce35766fd5c876 Mon Sep 17 00:00:00 2001 From: Saulo Vallory Date: Mon, 18 Nov 2013 14:33:34 -0200 Subject: [PATCH 1/6] Fix tutorials rendering --- template/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/publish.js b/template/publish.js index 42e9401..d54c492 100755 --- a/template/publish.js +++ b/template/publish.js @@ -848,5 +848,5 @@ exports.publish = function ( taffyData, opts, tutorials ) { } ); } - if( tutorials && tutorials.length>0) saveChildren( tutorials ); + if( tutorials && tutorials.children.length > 0) saveChildren( tutorials ); }; From 1d1d8625b7368a6189d118e87c8ee058243a1fea Mon Sep 17 00:00:00 2001 From: Saulo Vallory Date: Mon, 18 Nov 2013 14:34:34 -0200 Subject: [PATCH 2/6] Enables constructor overloading --- template/tmpl/container.tmpl | 42 ++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/template/tmpl/container.tmpl b/template/tmpl/container.tmpl index ff1bc52..1d4a467 100755 --- a/template/tmpl/container.tmpl +++ b/template/tmpl/container.tmpl @@ -1,6 +1,7 @@ @@ -31,24 +32,26 @@
- - - - - - - - -
+ + + - + = 0) { ?> + + + +
+ + + - -

Example 1? 's':'' ?>

- + +

Example 1? 's':'' ?>

+ + - +
@@ -155,6 +158,7 @@

Methods

@@ -195,10 +199,10 @@ - + + +
- - - + \ No newline at end of file From 127425f9bbcb6370432a444a58216ed24e2bf71b Mon Sep 17 00:00:00 2001 From: Saulo Vallory Date: Mon, 18 Nov 2013 14:44:49 -0200 Subject: [PATCH 3/6] Fix error when commentsOnly is true and file has no comments. Issue: #4 --- template/plugins/TSDoc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/plugins/TSDoc.js b/template/plugins/TSDoc.js index f95781c..0709283 100644 --- a/template/plugins/TSDoc.js +++ b/template/plugins/TSDoc.js @@ -66,6 +66,10 @@ exports.handlers = { if (comments) { e.source = comments.join('\n\n'); } + else { + e.source = ""; + return; + } } // Search for class declarations and check for generics descriptors From a68d2a1be18b9ebeeaecd2b1e18e6dcd6c4df15d Mon Sep 17 00:00:00 2001 From: Saulo Vallory Date: Tue, 19 Nov 2013 12:05:00 -0200 Subject: [PATCH 4/6] Adds config property templates.excludeTutorials to filter which tutorial are generated This is specially useful when tutorials is a clone of your Github wiki and you have _Footer, _Sidebar or _Header files --- template/publish.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/template/publish.js b/template/publish.js index d54c492..f5f6ee9 100755 --- a/template/publish.js +++ b/template/publish.js @@ -463,10 +463,12 @@ function buildNav( members ) { } if ( members.tutorials.length ) { - + var excRe = new RegExp(env.conf.templates.excludeTutorials, 'i'); members.tutorials.sort(sort_by('name', true, function(a){return a.toUpperCase()})); members.tutorials.forEach( function ( t ) { - + if(excRe.test(t.name)) { + return; + } nav.tutorial.members.push( tutoriallink( t.name ) ); } ); @@ -842,10 +844,15 @@ exports.publish = function ( taffyData, opts, tutorials ) { // tutorials can have only one parent so there is no risk for loops function saveChildren( node ) { + var excRe = new RegExp(env.conf.templates.excludeTutorials, 'i'); node.children.forEach( function ( child ) { + if(excRe.test(child.name)) { + console.log('Tutorial %s (%s) exclude by templates.excludeTutorials regex', child.title, child.name); + return; + } generateTutorial( 'tutorial' + child.title, child, helper.tutorialToUrl( child.name ) ); saveChildren( child ); - } ); + }); } if( tutorials && tutorials.children.length > 0) saveChildren( tutorials ); From 9fc16cd0d785c1efc6ed64c05df3922318cbd51a Mon Sep 17 00:00:00 2001 From: Saulo Vallory Date: Tue, 19 Nov 2013 12:05:42 -0200 Subject: [PATCH 5/6] Sorts tutorial menu by tutorial's title instead of it's file name --- template/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/publish.js b/template/publish.js index f5f6ee9..e81f21f 100755 --- a/template/publish.js +++ b/template/publish.js @@ -464,7 +464,7 @@ function buildNav( members ) { if ( members.tutorials.length ) { var excRe = new RegExp(env.conf.templates.excludeTutorials, 'i'); - members.tutorials.sort(sort_by('name', true, function(a){return a.toUpperCase()})); + members.tutorials.sort(sort_by('title', true, function(a){return a.toUpperCase()})); members.tutorials.forEach( function ( t ) { if(excRe.test(t.name)) { return; From 5c4e90ef6ff2a8128076ca9d894d43fc36dffd62 Mon Sep 17 00:00:00 2001 From: Saulo Vallory Date: Tue, 11 Aug 2015 20:00:47 -0300 Subject: [PATCH 6/6] Fixing filemode --- LICENSE.md | 0 template/LICENSE.md | 0 template/publish.js | 0 template/static/img/glyphicons-halflings-white.png | Bin template/static/img/glyphicons-halflings.png | Bin template/static/scripts/URI.js | 0 template/static/scripts/bootstrap-dropdown.js | 0 template/static/scripts/bootstrap-tab.js | 0 template/static/scripts/jquery.localScroll.js | 0 template/static/scripts/jquery.min.js | 0 template/static/scripts/jquery.scrollTo.js | 0 template/static/scripts/jquery.sunlight.js | 0 .../static/scripts/prettify/Apache-License-2.0.txt | 0 template/static/scripts/prettify/jquery.min.js | 0 template/static/scripts/prettify/lang-css.js | 0 template/static/scripts/prettify/prettify.js | 0 template/static/scripts/sunlight-plugin.doclinks.js | 0 .../static/scripts/sunlight-plugin.linenumbers.js | 0 template/static/scripts/sunlight-plugin.menu.js | 0 template/static/scripts/sunlight.javascript.js | 0 template/static/scripts/sunlight.js | 0 template/static/scripts/toc.js | 0 template/static/styles/darkstrap.css | 0 template/static/styles/prettify-tomorrow.css | 0 template/static/styles/site.cerulean.css | 0 template/static/styles/sunlight.dark.css | 0 template/static/styles/sunlight.default.css | 0 template/tsdoc.json | 0 28 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 LICENSE.md mode change 100755 => 100644 template/LICENSE.md mode change 100755 => 100644 template/publish.js mode change 100755 => 100644 template/static/img/glyphicons-halflings-white.png mode change 100755 => 100644 template/static/img/glyphicons-halflings.png mode change 100755 => 100644 template/static/scripts/URI.js mode change 100755 => 100644 template/static/scripts/bootstrap-dropdown.js mode change 100755 => 100644 template/static/scripts/bootstrap-tab.js mode change 100755 => 100644 template/static/scripts/jquery.localScroll.js mode change 100755 => 100644 template/static/scripts/jquery.min.js mode change 100755 => 100644 template/static/scripts/jquery.scrollTo.js mode change 100755 => 100644 template/static/scripts/jquery.sunlight.js mode change 100755 => 100644 template/static/scripts/prettify/Apache-License-2.0.txt mode change 100755 => 100644 template/static/scripts/prettify/jquery.min.js mode change 100755 => 100644 template/static/scripts/prettify/lang-css.js mode change 100755 => 100644 template/static/scripts/prettify/prettify.js mode change 100755 => 100644 template/static/scripts/sunlight-plugin.doclinks.js mode change 100755 => 100644 template/static/scripts/sunlight-plugin.linenumbers.js mode change 100755 => 100644 template/static/scripts/sunlight-plugin.menu.js mode change 100755 => 100644 template/static/scripts/sunlight.javascript.js mode change 100755 => 100644 template/static/scripts/sunlight.js mode change 100755 => 100644 template/static/scripts/toc.js mode change 100755 => 100644 template/static/styles/darkstrap.css mode change 100755 => 100644 template/static/styles/prettify-tomorrow.css mode change 100755 => 100644 template/static/styles/site.cerulean.css mode change 100755 => 100644 template/static/styles/sunlight.dark.css mode change 100755 => 100644 template/static/styles/sunlight.default.css mode change 100755 => 100644 template/tsdoc.json diff --git a/LICENSE.md b/LICENSE.md old mode 100755 new mode 100644 diff --git a/template/LICENSE.md b/template/LICENSE.md old mode 100755 new mode 100644 diff --git a/template/publish.js b/template/publish.js old mode 100755 new mode 100644 diff --git a/template/static/img/glyphicons-halflings-white.png b/template/static/img/glyphicons-halflings-white.png old mode 100755 new mode 100644 diff --git a/template/static/img/glyphicons-halflings.png b/template/static/img/glyphicons-halflings.png old mode 100755 new mode 100644 diff --git a/template/static/scripts/URI.js b/template/static/scripts/URI.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/bootstrap-dropdown.js b/template/static/scripts/bootstrap-dropdown.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/bootstrap-tab.js b/template/static/scripts/bootstrap-tab.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/jquery.localScroll.js b/template/static/scripts/jquery.localScroll.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/jquery.min.js b/template/static/scripts/jquery.min.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/jquery.scrollTo.js b/template/static/scripts/jquery.scrollTo.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/jquery.sunlight.js b/template/static/scripts/jquery.sunlight.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/prettify/Apache-License-2.0.txt b/template/static/scripts/prettify/Apache-License-2.0.txt old mode 100755 new mode 100644 diff --git a/template/static/scripts/prettify/jquery.min.js b/template/static/scripts/prettify/jquery.min.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/prettify/lang-css.js b/template/static/scripts/prettify/lang-css.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/prettify/prettify.js b/template/static/scripts/prettify/prettify.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/sunlight-plugin.doclinks.js b/template/static/scripts/sunlight-plugin.doclinks.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/sunlight-plugin.linenumbers.js b/template/static/scripts/sunlight-plugin.linenumbers.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/sunlight-plugin.menu.js b/template/static/scripts/sunlight-plugin.menu.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/sunlight.javascript.js b/template/static/scripts/sunlight.javascript.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/sunlight.js b/template/static/scripts/sunlight.js old mode 100755 new mode 100644 diff --git a/template/static/scripts/toc.js b/template/static/scripts/toc.js old mode 100755 new mode 100644 diff --git a/template/static/styles/darkstrap.css b/template/static/styles/darkstrap.css old mode 100755 new mode 100644 diff --git a/template/static/styles/prettify-tomorrow.css b/template/static/styles/prettify-tomorrow.css old mode 100755 new mode 100644 diff --git a/template/static/styles/site.cerulean.css b/template/static/styles/site.cerulean.css old mode 100755 new mode 100644 diff --git a/template/static/styles/sunlight.dark.css b/template/static/styles/sunlight.dark.css old mode 100755 new mode 100644 diff --git a/template/static/styles/sunlight.default.css b/template/static/styles/sunlight.default.css old mode 100755 new mode 100644 diff --git a/template/tsdoc.json b/template/tsdoc.json old mode 100755 new mode 100644