Skip to content

Rustdoc does not update the stored theme if the currently displayed theme matches the system #78273

Closed
@Nemo157

Description

@Nemo157

Repro:

This affects the plan we have for docs.rs to follow rustdoc's theme setting, rust-lang/docs.rs#1116 (comment), I assumed that rustdoc would update the stored theme whenever it changes so we could synchronize off that. Missing the initial setting based on the fact that light is the "default" theme loaded before the JS runs seems like a bug.

cc @nasso,

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-themesArea: Themes for HTML pages generated by rustdocA-rustdoc-uiArea: Rustdoc UI (generated HTML)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