You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@tobiasbunyan Thank you for your report. You found exactly the root cause. The statictoc template is out of sync with the default template. This will be fixed in Docfx 2.12
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.
The text was updated successfully, but these errors were encountered: