Commit ebaf774
committed
Emit canonical URLs for all rustdoc pages
Previously, we did not emit canonical URLs for crates that had an
alternate documentation URL. However, this produces bad results for
those crates, with older versions being selected as canonical even
if the latest version uses docs.rs as its documentation URL.1 parent 24bf3b2 commit ebaf774
2 files changed
+7
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
495 | 493 | | |
496 | 494 | | |
497 | 495 | | |
498 | 496 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
512 | 503 | | |
513 | 504 | | |
514 | 505 | | |
| |||
2063 | 2054 | | |
2064 | 2055 | | |
2065 | 2056 | | |
2066 | | - | |
| 2057 | + | |
2067 | 2058 | | |
2068 | 2059 | | |
2069 | 2060 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
0 commit comments