Details
-
Type:
Improvement
-
Status: Done (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: plugin-site
-
Labels:None
-
Epic Link:
-
Similar Issues:
Description
Documentation for certain plugins (git plugin, configuration as code plugin, etc.) can be quite lengthy. Navigation can be assisted by a table of contents at the top of the documentation page. That navigation can be implemented with the GitHub markdown convention which creates anchor names based on the heading text.
For example, the git plugin extensions section is linked from the contents section and works in the README on GitHub. The same links do not work on the plugins.jenkins.io site.
Attachments
Issue Links
- links to
I guess the reason GitHub uses the prefix is to avoid collisions with UI elements defined by GitHub itself. So a foolproof solution would be to keep the anchors and call scrolntoView from some event listeners (load, link clicked). But Tim's fix is good in 99%+ of cases, so maybe close this and wait until we run into actual collision?