Struct mdbook::config::htmlconfig::HtmlConfig
[−]
[src]
pub struct HtmlConfig { /* fields omitted */ }
Methods
impl HtmlConfig
[src]
fn new<T: Into<PathBuf>>(root: T) -> Self
Creates a new HtmlConfig
struct containing the configuration parameters for the HTML renderer.
let output = PathBuf::from("root/book"); let config = HtmlConfig::new(PathBuf::from("root")); assert_eq!(config.get_destination(), &output);
fn fill_from_tomlconfig<T: Into<PathBuf>>(
&mut self,
root: T,
tomlconfig: TomlHtmlConfig
) -> &mut Self
&mut self,
root: T,
tomlconfig: TomlHtmlConfig
) -> &mut Self
fn set_destination<T: Into<PathBuf>>(
&mut self,
root: T,
destination: T
) -> &mut Self
&mut self,
root: T,
destination: T
) -> &mut Self
fn get_destination(&self) -> &Path
fn get_theme(&self) -> &Path
fn set_theme<T: Into<PathBuf>>(&mut self, root: T, theme: T) -> &mut Self
fn get_curly_quotes(&self) -> bool
fn set_curly_quotes(&mut self, curly_quotes: bool)
fn get_mathjax_support(&self) -> bool
fn set_mathjax_support(&mut self, mathjax_support: bool)
fn get_google_analytics_id(&self) -> Option<String>
fn set_google_analytics_id(&mut self, id: Option<String>) -> &mut Self
fn has_additional_css(&self) -> bool
fn get_additional_css(&self) -> &[PathBuf]
fn has_additional_js(&self) -> bool
fn get_additional_js(&self) -> &[PathBuf]
fn get_playpen_config(&self) -> &PlaypenConfig
fn get_mut_playpen_config(&mut self) -> &mut PlaypenConfig
Trait Implementations
impl Debug for HtmlConfig
[src]
impl Clone for HtmlConfig
[src]
fn clone(&self) -> HtmlConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for HtmlConfig
[src]
fn eq(&self, __arg_0: &HtmlConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HtmlConfig) -> bool
This method tests for !=
.