From ad087738cd2486340f8c6a113b33fe6a43a941ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 7 Jun 2011 10:33:39 +0100 Subject: [PATCH] JSDocs: Use no extensions in links for templatedocs. --- build/jsdoc-toolkit/templates/jsdoc/publish.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/jsdoc-toolkit/templates/jsdoc/publish.js b/build/jsdoc-toolkit/templates/jsdoc/publish.js index 3df38877..d69a2a04 100644 --- a/build/jsdoc-toolkit/templates/jsdoc/publish.js +++ b/build/jsdoc-toolkit/templates/jsdoc/publish.js @@ -6,12 +6,15 @@ load(JSDOC.opt.t + 'src/Render.js'); function publish(symbolSet) { var renderMode = JSDOC.opt.D.renderMode; + var templatedocs = renderMode == 'templatedocs'; + var extension = templatedocs ? '.jstl' : '.html'; publish.conf = { // trailing slash expected for dirs - ext: renderMode == 'docs' ? '.html' : '.jstl', outDir: JSDOC.opt.d || SYS.pwd + '../out/jsdoc/', templateDir: JSDOC.opt.t || SYS.pwd + '../templates/jsdoc/', staticDir: (JSDOC.opt.t || SYS.pwd + '../templates/jsdoc/') + 'static/', symbolsDir: renderMode == 'docs' ? 'packages/' : 'paper/', + // Use no extensions in links for templatedocs + ext: templatedocs ? '' : extension, srcDir: 'symbols/src/', renderMode: renderMode, globalName: 'Global Scope' @@ -75,7 +78,7 @@ function publish(symbolSet) { Link.currentSymbol= symbol; var html = Render._class(symbol); var name = ((JSDOC.opt.u)? Link.filemap[symbol.alias] : symbol.alias) - + publish.conf.ext; + + extension; if (renderMode == 'docs') { html = Render.html({ content: html,