doc: adjust all doc headings one level up#12595
Conversation
|
r? @epage (rustbot has picked a reviewer for you, use r? to override) |
|
I've added screenshots to the PR. Doing the side by side comparison on different pages, the new headers almost feel comically big compared to everything else Thoughts? |
Rustc book uses the same level of headings. I am biased as I am the author of this PR 🤪. https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html |
|
(Off topic warning) |
|
Minimal h1 use
h1 for each page
|
|
For me, I find the styling off but willing to follow the trend @bors r+ |
|
☀️ Test successful - checks-actions |
Update cargo 21 commits in 96fe1c9e1aecd8f57063e3753969bb6418fd2fd5..d14c85f4e6e7671673b1a1bc87231ff7164761e1 2023-08-29 20:10:34 +0000 to 2023-09-05 22:28:10 +0000 - fix(resolver): Make resolver behavior independent of package order (rust-lang/cargo#12602) - cargo-credential: change serialization of cache expiration (rust-lang/cargo#12622) - Update registry-web-api.md yank/unyank comments (rust-lang/cargo#12619) - test: new options of debuginfo are no longer unstable (rust-lang/cargo#12618) - use split_once for cleaner code (rust-lang/cargo#12615) - stop using lazy_static (rust-lang/cargo#12616) - doc: adjust all doc headings one level up (rust-lang/cargo#12595) - chore(deps): update compatible (rust-lang/cargo#12609) - chore(deps): update rust crate cargo_metadata to 0.17.0 (rust-lang/cargo#12610) - Prepare for partial-version package specs (rust-lang/cargo#12591) - refactor: Use more serde_untagged (rust-lang/cargo#12581) - fix(cli): Help users know possible `--target` values (rust-lang/cargo#12607) - Tab completion for --target uses rustup but fallsback to rustc (rust-lang/cargo#12606) - Fewer temporary needless strings (rust-lang/cargo#12604) - fix(help): Provide better commands heading for styling (rust-lang/cargo#12593) - fix(update): Clarify meaning of --aggressive as --recursive (rust-lang/cargo#12544) - docs(changelog): Clarify language for Cargo.lock policy (rust-lang/cargo#12601) - fix typo: "default branch branch" -> "default branch" (rust-lang/cargo#12598) - fix: add error for unsupported credential provider version (rust-lang/cargo#12590) - fix(help): Explain --explain (rust-lang/cargo#12592) - fix(help): Remove redundant information from new/init (rust-lang/cargo#12594) r? ghost
Things were flat due to the nesting level they were at and this was overlooked when changing the levels in rust-lang#12595
What does this PR try to resolve?
Just noticed that most chapters of The Cargo Book start with a h2 heading, without any h1. I'd propose to change all the chapter titles to h1 and update other headings accordingly. So that we can avoid headings like
####or#####that are hard to tell from normal emphasize.Before:
After:
How should we test and review this PR?
mdbook serve src/docand read it.Additional information
Zulip discussion: https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/doc.20headings/near/387563581