Skip to content

Setting ayu theme on new docs falls back to light theme on old docs #919

Open
@Nemo157

Description

@Nemo157

If you go to newly generated docs like https://docs.rs/tokio/0.2.22/tokio/ and set your theme to ayu, then navigate to old docs like https://docs.rs/tokio/0.2.21/tokio/ it will fallback to the light theme since ayu doesn't exist and blind the user.

It might be possible to inject a little docs.rs specific JS to cause ayu to fallback to the dark theme instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Web frontendE-easyEffort: Should be easy to implement and would make a good first PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions