specctra: WIP Logo not working

This commit is contained in:
hakki 2024-09-09 18:10:47 +02:00
parent 46e935b9f6
commit 1fae63c8bd
2 changed files with 5 additions and 1 deletions

View File

@ -2,8 +2,10 @@ include!("src/bin/topola/cli.rs");
use clap::CommandFactory;
use clap_mangen::Man;
use std::fs::{create_dir_all, File};
// https://rust-cli.github.io/book/in-depth/docs.html
fn main() -> Result<(), Box<dyn std::error::Error>> {
std::fs::copy("assets/favicon.ico", "target/doc/logo.ico").expect("Failed to copy crate favicon when building documentation.");
std::fs::copy("assets/logo.svg", "target/doc/logo.svg").expect("Failed to copy crate logo when building documentation.");
let cmd = Cli::command();
let man = Man::new(cmd);
let folder = "man";

View File

@ -1,3 +1,5 @@
#![doc(html_favicon_url = "logo.ico")]
#![doc(html_logo_url = "logo.png")]
#![cfg_attr(not(feature = "disable_contracts"), feature(try_blocks))]
pub mod graph;