mdbook/src/preprocess/mod.rs
2018-01-16 22:39:11 +00:00

17 lines
No EOL
301 B
Rust

pub use self::links::LinkPreprocessor;
mod links;
use book::Book;
use errors::*;
use std::path::PathBuf;
pub struct PreprocessorContext {
pub src_dir: PathBuf
}
pub trait Preprocessor {
fn name(&self) -> &str;
fn run(&self, ctx: &PreprocessorContext, book: &mut Book) -> Result<()>;
}