Adjust docs theme to catppuccin

- light-mode uses catpuccin-latte
  - dark-mode uses catpuccin-mocha
This commit is contained in:
KtorZ
2022-12-17 02:36:05 +01:00
parent 5c0920d6bb
commit a83900409b
4 changed files with 111 additions and 250 deletions

View File

@@ -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(),