Uh oh!
There was an error while loading. Please reload this page.
[v14.x-backport] doc: anchor link parity between markdown and html-generated docs - #40495
[v14.x-backport] doc: anchor link parity between markdown and html-generated docs#40495foxxyz wants to merge 3 commits into
Conversation
PR-URL: nodejs#39635 Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
PR-URL: nodejs#40041 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Main changes: - Replace current HTML anchor generation to match header anchor generation in Github markdown. - Remove unnecessary double namespacing on generated anchors/links (E.G. `esm.md#loaders` instead of `esm.md#esm_loaders`). - Anchors/links are automatically prefixed with their respective modules when concatenated for usage in `all.html`. Benefits: - All anchor links within and between markdown API docs actually work. - Adding new anchor links no longer requires contributors to generate the HTML docs first to look up the correct anchors. - Anchors are much shorter. - All previous anchor links are preserved by generating hidden legacy anchors. PR-URL: nodejs#39304 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95
commented
Oct 18, 2021
Note this will conflict with #40479, before merging this PR we should probably make sure that everything that landed on |
targos
commented
Oct 18, 2021
#40479 is semver-minor and there is currently no more semver-minor release scheduled for v14.x. I don't think it should block this. |
richardlau
commented
Nov 24, 2021
This didn't make it in time for the maintenance transition -- I'm leaning towards closing this as "won't fix" on v14.x. That may result in merge conflicts when cherry-picking fixes but those should be infrequent now 14 is in maintenance. cc @nodejs/lts |
foxxyz
commented
Nov 30, 2021
No problem - if there's anything I can do let me know! |
b5b66ef to
1f48dd8Compare495dde6 to
cede1f2Compare30ba86c to
7f2825bComparetargos
commented
Apr 10, 2022
@foxxyz Thanks again! Sorry we couldn't merge this in time. |
foxxyz
commented
Apr 11, 2022
All good! Hope to contribute more in the future - thank you 🙏🏽 ❗ |
Backport of #39304
(hope this is not too late for a 14.x merge. If it is, feel free to close.)