From bd61bf5a27f76be28b95add5b67525b19da777e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 7 Jun 2011 10:35:26 +0100 Subject: [PATCH] JSDocs: Correct the way links are generated in templatedocs. --- build/jsdoc-toolkit/templates/jsdoc/publish.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/jsdoc-toolkit/templates/jsdoc/publish.js b/build/jsdoc-toolkit/templates/jsdoc/publish.js index b9cf6f4e..650a88e8 100644 --- a/build/jsdoc-toolkit/templates/jsdoc/publish.js +++ b/build/jsdoc-toolkit/templates/jsdoc/publish.js @@ -12,17 +12,19 @@ function publish(symbolSet) { var outDir = JSDOC.opt.d || SYS.pwd + '../out/jsdoc/'; publish.conf = { // trailing slash expected for dirs - symbolsDir: renderMode == 'docs' ? 'packages/' : 'paper/', // Use no extensions in links for templatedocs ext: templatedocs ? '' : extension, outDir: outDir, templateDir: templateDir, staticDir: templateDir + 'static/', classesDir: outDir + 'classes/', + symbolsDir: templatedocs ? 'reference/' : 'classes/', srcDir: 'symbols/src/', renderMode: renderMode, globalName: 'Global Scope' }; + + Link.base = templatedocs ? '/' : '../'; if (renderMode == 'docs') { // Copy over the static files @@ -64,8 +66,6 @@ function publish(symbolSet) { ? linkAlias + '_' + filemapCounts[lcAlias] : linkAlias; } } - - Link.base = '../'; // create each of the class pages for (var i = 0, l = classes.length; i < l; i++) {