Añade guía de mdBook como referencia para PageTop

This commit is contained in:
Manuel Cillero 2022-07-24 16:14:50 +02:00
parent ae2d54828f
commit 396f9df5ee
55 changed files with 5280 additions and 2 deletions

17
website/build.rs Normal file
View file

@ -0,0 +1,17 @@
use static_files::resource_dir;
use std::env;
use std::path::Path;
fn main() -> std::io::Result<()> {
build_resource_dir("./static/doc", "mdbook")
}
fn build_resource_dir(dir: &str, name: &str) -> std::io::Result<()> {
let mut resource = resource_dir(dir);
resource.with_generated_filename(
Path::new(env::var("OUT_DIR").unwrap().as_str()).join(format!("{}.rs", name)),
);
resource.with_module_name(format!("resources_{}", name));
resource.build()
}