Skip to content

rustdoc --check-theme doesn't work with minified theme #69071

Closed
@Nemo157

Description

@Nemo157

In any crate running cargo doc && rustdoc --check-theme target/doc/light.css will emit a bunch of errors. If you take the css file and run it through something like prettier to get it to an unminified state then --check-theme will work fine.

Testing some manual minification of it one thing it appears to not like is , without a trailing space. Joining the h1, h2, lines into h1,h2, gives

  Missing "h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod)" rule

(cc @GuillaumeGomez)

Metadata

Metadata

Labels

C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions