mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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/';
|
var outDir = JSDOC.opt.d || SYS.pwd + '../out/jsdoc/';
|
||||||
|
|
||||||
publish.conf = { // trailing slash expected for dirs
|
publish.conf = { // trailing slash expected for dirs
|
||||||
symbolsDir: renderMode == 'docs' ? 'packages/' : 'paper/',
|
|
||||||
// Use no extensions in links for templatedocs
|
// Use no extensions in links for templatedocs
|
||||||
ext: templatedocs ? '' : extension,
|
ext: templatedocs ? '' : extension,
|
||||||
outDir: outDir,
|
outDir: outDir,
|
||||||
templateDir: templateDir,
|
templateDir: templateDir,
|
||||||
staticDir: templateDir + 'static/',
|
staticDir: templateDir + 'static/',
|
||||||
classesDir: outDir + 'classes/',
|
classesDir: outDir + 'classes/',
|
||||||
|
symbolsDir: templatedocs ? 'reference/' : 'classes/',
|
||||||
srcDir: 'symbols/src/',
|
srcDir: 'symbols/src/',
|
||||||
renderMode: renderMode,
|
renderMode: renderMode,
|
||||||
globalName: 'Global Scope'
|
globalName: 'Global Scope'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Link.base = templatedocs ? '/' : '../';
|
||||||
|
|
||||||
if (renderMode == 'docs') {
|
if (renderMode == 'docs') {
|
||||||
// Copy over the static files
|
// Copy over the static files
|
||||||
|
@ -64,8 +66,6 @@ function publish(symbolSet) {
|
||||||
? linkAlias + '_' + filemapCounts[lcAlias] : linkAlias;
|
? linkAlias + '_' + filemapCounts[lcAlias] : linkAlias;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Link.base = '../';
|
|
||||||
|
|
||||||
// create each of the class pages
|
// create each of the class pages
|
||||||
for (var i = 0, l = classes.length; i < l; i++) {
|
for (var i = 0, l = classes.length; i < l; i++) {
|
||||||
|
|
Loading…
Reference in a new issue