Skip to content

Commit 8c45cf8

Browse files
committed
Add Ayu theme to rustdoc
1 parent 0e89f50 commit 8c45cf8

File tree

3 files changed

+571
-0
lines changed

3 files changed

+571
-0
lines changed

src/librustdoc/html/render.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ pub fn run(
558558
// prevent rule conflicts
559559
scx.style_files.push(StylePath { path: PathBuf::from("light.css"), disabled: false });
560560
scx.style_files.push(StylePath { path: PathBuf::from("dark.css"), disabled: true });
561+
scx.style_files.push(StylePath { path: PathBuf::from("ayu.css"), disabled: true });
561562

562563
let dst = output;
563564
scx.ensure_dir(&dst)?;
@@ -654,6 +655,12 @@ fn write_shared(
654655
static_files::themes::DARK,
655656
options.enable_minification,
656657
)?,
658+
"ayu" => write_minify(
659+
&cx.shared.fs,
660+
cx.path("ayu.css"),
661+
static_files::themes::AYU,
662+
options.enable_minification,
663+
)?,
657664
_ => {
658665
// Handle added third-party themes
659666
let content = try_err!(fs::read(&entry.path), &entry.path);

0 commit comments

Comments
 (0)