Uh oh!
There was an error while loading. Please reload this page.
Commit 1aebff9
committed
Add Top TOC support to rustdoc
This commit adds the headers for the top level documentation to
rustdoc's existing table of contents, along with associated items.
It only show two levels of headers. Going further would require the
sidebar to be wider, and that seems unnecessary (the crates that
have manually-built TOCs usually don't need deeply nested headers).1 parent 5aea140 commit 1aebff9
15 files changed
Lines changed: 267 additions & 129 deletions
File tree
- src/librustdoc
- clean
- html
- render
- static/css
- templates
- tests
- rustdoc-gui
- rustdoc/sidebar
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | 509 | | |
513 | 510 | | |
514 | 511 | | |
| |||
536 | 533 | | |
537 | 534 | | |
538 | 535 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | 536 | | |
543 | 537 | | |
544 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
532 | 533 | | |
533 | 534 | | |
534 | 535 | | |
535 | | - | |
536 | | - | |
537 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
538 | 539 | | |
539 | 540 | | |
540 | 541 | | |
| |||
1415 | 1416 | | |
1416 | 1417 | | |
1417 | 1418 | | |
1418 | | - | |
1419 | | - | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
1420 | 1422 | | |
1421 | | - | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
1422 | 1436 | | |
1423 | 1437 | | |
1424 | 1438 | | |
| |||
1432 | 1446 | | |
1433 | 1447 | | |
1434 | 1448 | | |
1435 | | - | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1436 | 1454 | | |
1437 | 1455 | | |
1438 | 1456 | | |
| |||
1611 | 1629 | | |
1612 | 1630 | | |
1613 | 1631 | | |
1614 | | - | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
1615 | 1642 | | |
1616 | 1643 | | |
1617 | 1644 | | |
| |||
1626 | 1653 | | |
1627 | 1654 | | |
1628 | 1655 | | |
1629 | | - | |
1630 | | - | |
1631 | 1656 | | |
1632 | 1657 | | |
1633 | 1658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
| 620 | + | |
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
| |||
0 commit comments