Struct mdblog::Mdblog
[−]
[src]
pub struct Mdblog { /* fields omitted */ }
blog object
Methods
impl Mdblog
[src]
fn new<P: AsRef<Path>>(root: P) -> Mdblog
create Mdblog from the root
path
fn init(&self, theme: Option<String>) -> Result<()>
init Mdblog with theme
.
theme directory is created at root/_theme
directory.
if theme
is None
, use the default theme(simple
).
fn build(&mut self, theme: Option<String>) -> Result<()>
create the blog html files to root/_build/
directory.
if theme
is None
, use the default theme(simple
).
fn server(&self, port: u16)
unimplemented.
fn get_config_theme(&self) -> String
fetch the config theme from the config.toml
file