Skip to content

Commit 2d69e53

Browse files
committed
fixes item 6 in #294
1 parent 3b6c5e8 commit 2d69e53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/jsdoc/templates/template/publish.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ function buildNav(members) {
385385
// MH: 9/7/19: use the basename of the folder as heading
386386
// MH: 13/7/19: we turn "_" into " §", in order to have nice headings
387387
const displayName = path.basename(outdir).replace(/_/g, " §");
388-
nav += `<h3>${linkto('global', 'Predeclared in '+ displayName)}</h3>`;
388+
const link = `<a href=".">${displayName}</a>`;
389+
nav += `<h3>${linkto('global', 'Predeclared in '+ link)}</h3>`;
389390
}
390391
else {
391392
nav += `<h3>Predeclared names</h3><ul>${globalNav}</ul>`;
@@ -618,8 +619,9 @@ exports.publish = (taffyData, opts, tutorials) => {
618619
let capName = baseName.replace(/source/g, "Source");
619620
// MH: 13/7/19: turn "_" into " §", in order to have nice headings
620621
const displayName = capName.replace(/_/g, " §");
622+
const link = `<a href=".">${displayName}</a>`;
621623

622-
if (members.globals.length) { generate('Predeclared in '+ displayName, [{kind: 'globalobj'}], globalUrl); }
624+
if (members.globals.length) { generate('Predeclared in '+ link, [{kind: 'globalobj'}], globalUrl); }
623625

624626
// index page displays information from package.json and lists files
625627
files = find({kind: 'file'});

0 commit comments

Comments
 (0)