Add Ayu theme to rustdoc

This commit is contained in:
Jarek Samic
2020-07-12 14:48:13 -04:00
parent 0e89f50f6e
commit 8c45cf8e60
3 changed files with 571 additions and 0 deletions

View File

@@ -558,6 +558,7 @@ pub fn run(
// prevent rule conflicts
scx.style_files.push(StylePath { path: PathBuf::from("light.css"), disabled: false });
scx.style_files.push(StylePath { path: PathBuf::from("dark.css"), disabled: true });
scx.style_files.push(StylePath { path: PathBuf::from("ayu.css"), disabled: true });
let dst = output;
scx.ensure_dir(&dst)?;
@@ -654,6 +655,12 @@ fn write_shared(
static_files::themes::DARK,
options.enable_minification,
)?,
"ayu" => write_minify(
&cx.shared.fs,
cx.path("ayu.css"),
static_files::themes::AYU,
options.enable_minification,
)?,
_ => {
// Handle added third-party themes
let content = try_err!(fs::read(&entry.path), &entry.path);