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/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 diff --git a/template/publish.js b/template/publish.js old mode 100755 new mode 100644 index 42e9401..e81f21f --- a/template/publish.js +++ b/template/publish.js @@ -463,10 +463,12 @@ function buildNav( members ) { } if ( members.tutorials.length ) { - - members.tutorials.sort(sort_by('name', true, function(a){return a.toUpperCase()})); + var excRe = new RegExp(env.conf.templates.excludeTutorials, 'i'); + members.tutorials.sort(sort_by('title', 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,11 +844,16 @@ 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.length>0) saveChildren( tutorials ); + if( tutorials && tutorials.children.length > 0) saveChildren( tutorials ); }; 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/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 diff --git a/template/tsdoc.json b/template/tsdoc.json old mode 100755 new mode 100644