rust-lang / rust-lang/docs.rs

Make docs.rs UI left-aligned instead of centered

Open
#1,888 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-frontend E-medium
Dominant language
Rust
Stars
1.2k
Forks
232
Avg merge
11h 35m
Merged PRs (30d)
60

Description

rustdoc's UI is left-aligned, including rustdoc displayed within docs.rs:

image

But if you visit a non-rustdoc page in docs.rs, for instance the crate page, the UI is centered:

image

In general I favor a centered UI, but I think for our use case the more important principle is consistency, so we should make the non-rustdoc pages left-aligned.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the rustdoc UI with the non-rustdoc crate page at docs.rs/crate/brotli/latest, using the linked screenshots as the visual reference. Locate the styling entry point for non-rustdoc pages and make their layout left-aligned consistently with rustdoc, then verify both page types visually.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.