Functional impact
Generated links only reference the page, not the bookmark.
Minimal repro steps
- Create a class with two methods, document the methods.
- Create a conceptual document and reference the methods (i.e. with
@ or <xref:>
- Generate documentation with statictoc template
Expected result
Method links in document include the bookmark to the method.
Actual result
Method links are missing the bookmark element.
Further technical details
This is confirmed if you look at the generated xrefmap.yml. All the href properties are missing the bookmark anchor points. Adding the following code from the default template ManagedReference.html.primary.js file to the bottom of the same file in the statictoc template seems to work. I don't know however if this is the correct solution to the problem.
exports.getOptions = function (model) {
return { "bookmarks": mrefCommon.getBookmarks(model) };
}
Functional impact
Generated links only reference the page, not the bookmark.
Minimal repro steps
@or<xref:>Expected result
Method links in document include the bookmark to the method.
Actual result
Method links are missing the bookmark element.
Further technical details
This is confirmed if you look at the generated xrefmap.yml. All the href properties are missing the bookmark anchor points. Adding the following code from the default template ManagedReference.html.primary.js file to the bottom of the same file in the statictoc template seems to work. I don't know however if this is the correct solution to the problem.