Añade módulo autónomo para integrar [mdbook]
This commit is contained in:
parent
3e16b0f805
commit
348ca88290
102 changed files with 5063 additions and 248 deletions
|
|
@ -4,7 +4,8 @@ use std::env;
|
|||
use std::path::Path;
|
||||
|
||||
fn main() -> std::io::Result<()> {
|
||||
build_resource_dir("./static/doc", "mdbook")
|
||||
build_resource_dir("./static/doc/en", "guides_en")?;
|
||||
build_resource_dir("./static/doc/es", "guias_es")
|
||||
}
|
||||
|
||||
fn build_resource_dir(dir: &str, name: &str) -> std::io::Result<()> {
|
||||
|
|
@ -13,5 +14,6 @@ fn build_resource_dir(dir: &str, name: &str) -> std::io::Result<()> {
|
|||
Path::new(env::var("OUT_DIR").unwrap().as_str()).join(format!("{}.rs", name)),
|
||||
);
|
||||
resource.with_module_name(format!("resources_{}", name));
|
||||
resource.with_generated_fn(name);
|
||||
resource.build()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue