From 04f04026c5cc9b23b59d9a630a03945ce4780cdd Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Fri, 7 Jan 2022 18:21:08 -0500 Subject: [PATCH] Add support for "always theme" in setting --- src/librustdoc/html/render/mod.rs | 6 +++++ src/librustdoc/html/static/js/settings.js | 28 ++++++++++++++++++++ src/librustdoc/html/static/js/storage.js | 11 +++++--- src/test/rustdoc-gui/toggle-docs-mobile.goml | 12 ++++----- 4 files changed, 47 insertions(+), 10 deletions(-) diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index dda7490493197..cf5dda3f2d410 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -421,6 +421,12 @@ fn settings(root_path: &str, suffix: &str, theme_names: Vec) -> Result