mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
JSDocs: Correct the way links are generated in templatedocs.
This commit is contained in:
parent
cb82bf3ff1
commit
bd61bf5a27
1 changed files with 3 additions and 3 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue