about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-05-18 11:03:44 +0200
committerGitHub <noreply@github.com>2025-05-18 11:03:44 +0200
commit5592f41a004e0fd533527a68c6075c84ea2b6c25 (patch)
treebd78ca8b6e2f78ccb1d829a8a3315d4742713bed /compiler/rustc_codegen_gcc
parentae3b909a323aa771db8ee3919c1454b77db05fbf (diff)
parent4cbcb44d702e54b29e4f9df509f0b463e9142e5c (diff)
downloadrust-5592f41a004e0fd533527a68c6075c84ea2b6c25.tar.gz
rust-5592f41a004e0fd533527a68c6075c84ea2b6c25.zip
Rollup merge of #140113 - Urgau:rustc-book-page-toc, r=ehuss
Add per page TOC in the `rustc` book

This PR adds per page Table of Content (TOC) in the `rustc` book (to be extended in the future to our other books).

The goal is to easy the navigation inside the page by providing quick overview of the page content and our position inside that page.

That functionality is unfortunately not available natively in `mdbook`, which prompted community members to create [mdBook-pagetoc](https://github.com/JorelAli/mdBook-pagetoc/) (which this PR is heavily inspired by). It's "only" a JS file (to handle the TOC) and a CSS file (to handle the margin, colors, screen size, ...), there is no "post-processor" needed (in mdbook sense).

![image](https://github.com/user-attachments/assets/9e790bea-059d-414e-b4a5-ac8170f57e27)

Live preview at: http://urgau.rf.gd/book

r? ```@jieyouxu```
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions