Adjust docs theme to catppuccin
- light-mode uses catpuccin-latte - dark-mode uses catpuccin-mocha
This commit is contained in:
@@ -15,7 +15,7 @@ use std::{
|
||||
time::{Duration, SystemTime},
|
||||
};
|
||||
|
||||
const MAX_COLUMNS: isize = 80;
|
||||
const MAX_COLUMNS: isize = 999;
|
||||
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
@@ -175,6 +175,11 @@ fn generate_module(
|
||||
fn generate_static_assets(search_indexes: Vec<SearchIndex>) -> Vec<DocFile> {
|
||||
let mut assets: Vec<DocFile> = vec![];
|
||||
|
||||
assets.push(DocFile {
|
||||
path: PathBuf::from("favicon.svg"),
|
||||
content: std::include_str!("../templates/favicon.svg").to_string(),
|
||||
});
|
||||
|
||||
assets.push(DocFile {
|
||||
path: PathBuf::from("css/atom-one-light.min.css"),
|
||||
content: std::include_str!("../templates/css/atom-one-light.min.css").to_string(),
|
||||
|
||||
Reference in New Issue
Block a user