Skip to content

rustdoc: Fix invalid CSS classes generated for notable items - #160921

Open
GuillaumeGomez wants to merge 1 commit into
rust-lang:mainfrom
GuillaumeGomez:notable-items
Open

rustdoc: Fix invalid CSS classes generated for notable items#160921
GuillaumeGomez wants to merge 1 commit into
rust-lang:mainfrom
GuillaumeGomez:notable-items

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

Just realized that the background for the notable traits was not set because the jinja template was not wrong:

Screenshot From 2026-08-11 17-15-34

With this fix it looks as expected:

Screenshot From 2026-08-11 17-16-21

Follow-up of #157058.

r? @Urgau

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Aug 11, 2026
@Urgau

Urgau commented Aug 11, 2026

Copy link
Copy Markdown
Member

because the jinja template was not wrong

not ? ;-)

@Urgau Urgau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me when CI is green

View changes since this review

@GuillaumeGomez

Copy link
Copy Markdown
Member Author

because the jinja template was not wrong

not ? ;-)

s/wrong/updated/ :')

@Urgau

Urgau commented Aug 11, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 5dc184c has been approved by Urgau

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 11, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 11, 2026
rustdoc: Fix invalid CSS classes generated for notable items

Just realized that the background for the notable traits was not set because the jinja template was not wrong:

<img width="306" height="122" alt="Screenshot From 2026-08-11 17-15-34" src="https://github.com/user-attachments/assets/57d6b20d-25bd-4142-9ea7-8c56d7442723" />

With this fix it looks as expected:

<img width="306" height="122" alt="Screenshot From 2026-08-11 17-16-21" src="https://github.com/user-attachments/assets/d3d7ea6f-c562-447f-94bb-91c80b299d90" />

Follow-up of rust-lang#157058.

r? @Urgau
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 11, 2026
rustdoc: Fix invalid CSS classes generated for notable items

Just realized that the background for the notable traits was not set because the jinja template was not wrong:

<img width="306" height="122" alt="Screenshot From 2026-08-11 17-15-34" src="https://github.com/user-attachments/assets/57d6b20d-25bd-4142-9ea7-8c56d7442723" />

With this fix it looks as expected:

<img width="306" height="122" alt="Screenshot From 2026-08-11 17-16-21" src="https://github.com/user-attachments/assets/d3d7ea6f-c562-447f-94bb-91c80b299d90" />

Follow-up of rust-lang#157058.

r? @Urgau
rust-bors Bot pushed a commit that referenced this pull request Aug 11, 2026
…uwer

Rollup of 14 pull requests

Successful merges:

 - #160620 (Do not pass `-no-pie` on Windows)
 - #160731 (Arc: Remove unnecessary fmt::Display use for overflow assertion)
 - #160760 (Miri: give the incremental session a chance to finish)
 - #160854 (Add -Zwasm-proc-macros flag)
 - #160868 (std: Adjust cfgs again for TLS on WASI)
 - #160894 (Allow running an arbitrary number of try jobs per PR)
 - #160790 (rustc-book: update sys-v abi link)
 - #160878 (Add rust_analyzer to check-cfg names)
 - #160909 (tests/run-make-cargo/thumb-none-cortex-m: bump `cortex-m` dependency)
 - #160920 (No longer mention the removed generic)
 - #160921 (rustdoc: Fix invalid CSS classes generated for notable items)
 - #160924 (split up `rustc_session`)
 - #160934 (Ensure TLS accesses don't call the global allocator through panic)
 - #160937 (Store the names of `Fn` trait parameters in the AST, fix rustfmt bug)
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 12, 2026
rustdoc: Fix invalid CSS classes generated for notable items

Just realized that the background for the notable traits was not set because the jinja template was not wrong:

<img width="306" height="122" alt="Screenshot From 2026-08-11 17-15-34" src="https://github.com/user-attachments/assets/57d6b20d-25bd-4142-9ea7-8c56d7442723" />

With this fix it looks as expected:

<img width="306" height="122" alt="Screenshot From 2026-08-11 17-16-21" src="https://github.com/user-attachments/assets/d3d7ea6f-c562-447f-94bb-91c80b299d90" />

Follow-up of rust-lang#157058.

r? @Urgau
rust-bors Bot pushed a commit that referenced this pull request Aug 12, 2026
Rollup of 14 pull requests

Successful merges:

 - #160620 (Do not pass `-no-pie` on Windows)
 - #160731 (Arc: Remove unnecessary fmt::Display use for overflow assertion)
 - #160854 (Add -Zwasm-proc-macros flag)
 - #160868 (std: Adjust cfgs again for TLS on WASI)
 - #160882 (Add basic `splat` support to `rustdoc`)
 - #160894 (Allow running an arbitrary number of try jobs per PR)
 - #160790 (rustc-book: update sys-v abi link)
 - #160878 (Add rust_analyzer to check-cfg names)
 - #160909 (tests/run-make-cargo/thumb-none-cortex-m: bump `cortex-m` dependency)
 - #160920 (No longer mention the removed generic)
 - #160921 (rustdoc: Fix invalid CSS classes generated for notable items)
 - #160924 (split up `rustc_session`)
 - #160934 (Ensure TLS accesses don't call the global allocator through panic)
 - #160937 (Store the names of `Fn` trait parameters in the AST, fix rustfmt bug)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants