Commit 1ef2cf8
doc: anchor link parity between markdown and html-generated docs
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: #39304
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 6d80a5e commit 1ef2cf8Copy full SHA for 1ef2cf8
File tree
Expand file treeCollapse file tree
59 files changed
+1498
-1435
lines changedOpen diff view settings
Filter options
- doc/api
- test/doctool
- tools/doc
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
59 files changed
+1498
-1435
lines changedOpen diff view settings
Collapse file
+5-4Lines changed: 5 additions & 4 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
457 | 457 | |
458 | 458 | |
459 | 459 | |
460 | | - |
| 460 | + |
461 | 461 | |
462 | 462 | |
463 | 463 | |
| ||
1367 | 1367 | |
1368 | 1368 | |
1369 | 1369 | |
1370 | | - |
| 1370 | + |
1371 | 1371 | |
1372 | 1372 | |
1373 | | - |
| 1373 | + |
1374 | 1374 | |
1375 | 1375 | |
1376 | 1376 | |
| 1377 | + |
1377 | 1378 | |
1378 | 1379 | |
1379 | 1380 | |
1380 | | - |
| 1381 | + |
1381 | 1382 | |
Collapse file
+23-22Lines changed: 23 additions & 22 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
99 | 99 | |
100 | 100 | |
101 | 101 | |
102 | | - |
| 102 | + |
103 | 103 | |
104 | 104 | |
105 | 105 | |
| ||
2420 | 2420 | |
2421 | 2421 | |
2422 | 2422 | |
2423 | | - |
2424 | | - |
| 2423 | + |
| 2424 | + |
2425 | 2425 | |
2426 | | - |
2427 | | - |
2428 | | - |
| 2426 | + |
| 2427 | + |
| 2428 | + |
2429 | 2429 | |
2430 | 2430 | |
2431 | 2431 | |
2432 | 2432 | |
2433 | 2433 | |
2434 | | - |
| 2434 | + |
2435 | 2435 | |
2436 | 2436 | |
2437 | | - |
2438 | | - |
2439 | | - |
2440 | | - |
2441 | | - |
2442 | | - |
2443 | | - |
2444 | | - |
2445 | | - |
2446 | | - |
2447 | | - |
2448 | | - |
2449 | | - |
2450 | | - |
| 2437 | + |
| 2438 | + |
| 2439 | + |
| 2440 | + |
| 2441 | + |
| 2442 | + |
| 2443 | + |
| 2444 | + |
| 2445 | + |
| 2446 | + |
| 2447 | + |
| 2448 | + |
| 2449 | + |
| 2450 | + |
| 2451 | + |
2451 | 2452 | |
2452 | 2453 | |
2453 | | - |
| 2454 | + |
Collapse file
+5-5Lines changed: 5 additions & 5 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
786 | 786 | |
787 | 787 | |
788 | 788 | |
789 | | - |
790 | | - |
791 | | - |
792 | | - |
793 | | - |
| 789 | + |
| 790 | + |
| 791 | + |
| 792 | + |
| 793 | + |
Collapse file
+10-10Lines changed: 10 additions & 10 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
841 | 841 | |
842 | 842 | |
843 | 843 | |
844 | | - |
| 844 | + |
845 | 845 | |
846 | | - |
847 | | - |
848 | | - |
849 | | - |
850 | | - |
851 | | - |
852 | | - |
853 | | - |
854 | | - |
| 846 | + |
| 847 | + |
| 848 | + |
| 849 | + |
| 850 | + |
| 851 | + |
| 852 | + |
| 853 | + |
| 854 | + |
Collapse file
+26-26Lines changed: 26 additions & 26 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5195 | 5195 | |
5196 | 5196 | |
5197 | 5197 | |
5198 | | - |
5199 | | - |
5200 | | - |
5201 | | - |
5202 | | - |
5203 | | - |
5204 | | - |
5205 | | - |
5206 | | - |
| 5198 | + |
| 5199 | + |
| 5200 | + |
| 5201 | + |
| 5202 | + |
| 5203 | + |
| 5204 | + |
| 5205 | + |
| 5206 | + |
5207 | 5207 | |
5208 | | - |
5209 | | - |
5210 | | - |
| 5208 | + |
| 5209 | + |
| 5210 | + |
5211 | 5211 | |
5212 | 5212 | |
5213 | 5213 | |
| ||
5219 | 5219 | |
5220 | 5220 | |
5221 | 5221 | |
5222 | | - |
5223 | | - |
5224 | | - |
5225 | | - |
5226 | | - |
5227 | | - |
5228 | | - |
5229 | | - |
5230 | | - |
5231 | | - |
5232 | | - |
5233 | | - |
5234 | | - |
5235 | | - |
| 5222 | + |
| 5223 | + |
| 5224 | + |
| 5225 | + |
| 5226 | + |
| 5227 | + |
| 5228 | + |
| 5229 | + |
| 5230 | + |
| 5231 | + |
| 5232 | + |
| 5233 | + |
| 5234 | + |
| 5235 | + |
5236 | 5236 | |
5237 | 5237 | |
5238 | 5238 | |
|
Collapse file
+38-38Lines changed: 38 additions & 38 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1772 | 1772 | |
1773 | 1773 | |
1774 | 1774 | |
1775 | | - |
1776 | | - |
| 1775 | + |
| 1776 | + |
1777 | 1777 | |
1778 | | - |
1779 | | - |
1780 | | - |
1781 | | - |
1782 | | - |
1783 | | - |
1784 | | - |
1785 | | - |
1786 | | - |
1787 | | - |
1788 | | - |
1789 | | - |
1790 | | - |
1791 | | - |
1792 | | - |
1793 | | - |
1794 | | - |
1795 | | - |
1796 | | - |
1797 | | - |
1798 | | - |
1799 | | - |
1800 | | - |
1801 | | - |
1802 | | - |
1803 | | - |
1804 | | - |
1805 | | - |
1806 | | - |
1807 | | - |
1808 | | - |
1809 | | - |
1810 | | - |
1811 | | - |
1812 | | - |
1813 | | - |
| 1778 | + |
| 1779 | + |
| 1780 | + |
| 1781 | + |
| 1782 | + |
| 1783 | + |
| 1784 | + |
| 1785 | + |
| 1786 | + |
| 1787 | + |
| 1788 | + |
| 1789 | + |
| 1790 | + |
| 1791 | + |
| 1792 | + |
| 1793 | + |
| 1794 | + |
| 1795 | + |
| 1796 | + |
| 1797 | + |
| 1798 | + |
| 1799 | + |
| 1800 | + |
| 1801 | + |
| 1802 | + |
| 1803 | + |
| 1804 | + |
| 1805 | + |
| 1806 | + |
| 1807 | + |
| 1808 | + |
| 1809 | + |
| 1810 | + |
| 1811 | + |
| 1812 | + |
| 1813 | + |
0 commit comments