mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
JSDocs: Use no extensions in links for templatedocs.
This commit is contained in:
parent
6249a8ba53
commit
ad087738cd
1 changed files with 5 additions and 2 deletions
|
@ -6,12 +6,15 @@ load(JSDOC.opt.t + 'src/Render.js');
|
||||||
|
|
||||||
function publish(symbolSet) {
|
function publish(symbolSet) {
|
||||||
var renderMode = JSDOC.opt.D.renderMode;
|
var renderMode = JSDOC.opt.D.renderMode;
|
||||||
|
var templatedocs = renderMode == 'templatedocs';
|
||||||
|
var extension = templatedocs ? '.jstl' : '.html';
|
||||||
publish.conf = { // trailing slash expected for dirs
|
publish.conf = { // trailing slash expected for dirs
|
||||||
ext: renderMode == 'docs' ? '.html' : '.jstl',
|
|
||||||
outDir: JSDOC.opt.d || SYS.pwd + '../out/jsdoc/',
|
outDir: JSDOC.opt.d || SYS.pwd + '../out/jsdoc/',
|
||||||
templateDir: JSDOC.opt.t || SYS.pwd + '../templates/jsdoc/',
|
templateDir: JSDOC.opt.t || SYS.pwd + '../templates/jsdoc/',
|
||||||
staticDir: (JSDOC.opt.t || SYS.pwd + '../templates/jsdoc/') + 'static/',
|
staticDir: (JSDOC.opt.t || SYS.pwd + '../templates/jsdoc/') + 'static/',
|
||||||
symbolsDir: renderMode == 'docs' ? 'packages/' : 'paper/',
|
symbolsDir: renderMode == 'docs' ? 'packages/' : 'paper/',
|
||||||
|
// Use no extensions in links for templatedocs
|
||||||
|
ext: templatedocs ? '' : extension,
|
||||||
srcDir: 'symbols/src/',
|
srcDir: 'symbols/src/',
|
||||||
renderMode: renderMode,
|
renderMode: renderMode,
|
||||||
globalName: 'Global Scope'
|
globalName: 'Global Scope'
|
||||||
|
@ -75,7 +78,7 @@ function publish(symbolSet) {
|
||||||
Link.currentSymbol= symbol;
|
Link.currentSymbol= symbol;
|
||||||
var html = Render._class(symbol);
|
var html = Render._class(symbol);
|
||||||
var name = ((JSDOC.opt.u)? Link.filemap[symbol.alias] : symbol.alias)
|
var name = ((JSDOC.opt.u)? Link.filemap[symbol.alias] : symbol.alias)
|
||||||
+ publish.conf.ext;
|
+ extension;
|
||||||
if (renderMode == 'docs') {
|
if (renderMode == 'docs') {
|
||||||
html = Render.html({
|
html = Render.html({
|
||||||
content: html,
|
content: html,
|
||||||
|
|
Loading…
Reference in a new issue