mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Fixes for intrapage link rendering.
This commit is contained in:
parent
15268b3ce0
commit
af8295aff4
@ -162,10 +162,10 @@
|
||||
longnameToUrl = {};
|
||||
|
||||
data.forEach(function(doclet) {
|
||||
if (~containers.indexOf(doclet.kind)) {
|
||||
if (doclet.memberof && containers.indexOf(doclet.kind) < 0) {
|
||||
var longname = doclet.longname,
|
||||
urlSafe = doclet.memberof.replace(/[^$a-z0-9._-]/gi, '_'), // TODO handle name collisions
|
||||
url = urlSafe + '.html#'doclet.name;
|
||||
url = urlSafe + '.html#'+doclet.name;
|
||||
}
|
||||
else {
|
||||
var longname = doclet.longname,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
<dt id="<?js= longname ?>">
|
||||
<h4 class="name"><?js= this.attribs + (kind == 'class'? 'new ':'') + name + this.signature ?></h4>
|
||||
<h4 class="name" id="<?js= name ?>"><?js= this.attribs + (kind == 'class'? 'new ':'') + name + this.signature ?></h4>
|
||||
|
||||
<?js if (this.summary) { ?>
|
||||
<p class="summary"><?js= summary ?></p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user