[−][src]Struct mdbook::config::HtmlConfig
Configuration for the HTML renderer.
Fields
theme: Option<PathBuf>The theme directory, if specified.
default_theme: Option<String>The default theme to use, defaults to 'light'
preferred_dark_theme: Option<String>The theme to use if the browser requests the dark version of the site. Defaults to the same as 'default_theme'
curly_quotes: boolUse "smart quotes" instead of the usual " character.
mathjax_support: boolShould mathjax be enabled?
google_analytics: Option<String>An optional google analytics code.
additional_css: Vec<PathBuf>Additional CSS stylesheets to include in the rendered page's <head>.
additional_js: Vec<PathBuf>Additional JS scripts to include at the bottom of the rendered page's
<body>.
fold: FoldFold settings.
playpen: PlaypenPlaypen settings.
no_section_label: boolDon't render section labels.
search: Option<Search>Search settings. If None, the default will be used.
git_repository_url: Option<String>Git repository url. If None, the git button will not be shown.
git_repository_icon: Option<String>FontAwesome icon class to use for the Git repository link.
Defaults to fa-github if None.
Methods
impl HtmlConfig[src]
pub fn theme_dir(&self, root: &PathBuf) -> PathBuf[src]
Returns the directory of theme from the provided root directory. If the directory is not present it will append the default directory of "theme"
Trait Implementations
impl Clone for HtmlConfig[src]
fn clone(&self) -> HtmlConfig[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for HtmlConfig[src]
impl Default for HtmlConfig[src]
fn default() -> HtmlConfig[src]
impl<'de> Deserialize<'de> for HtmlConfig where
HtmlConfig: Default, [src]
HtmlConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<HtmlConfig> for HtmlConfig[src]
fn eq(&self, other: &HtmlConfig) -> bool[src]
fn ne(&self, other: &HtmlConfig) -> bool[src]
impl Serialize for HtmlConfig[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for HtmlConfig[src]
Auto Trait Implementations
impl RefUnwindSafe for HtmlConfig
impl Send for HtmlConfig
impl Sync for HtmlConfig
impl Unpin for HtmlConfig
impl UnwindSafe for HtmlConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CloneAny for T where
T: Clone + Any, [src]
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>[src]
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send, [src]
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync, [src]
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync, [src]
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug, [src]
T: Any + Debug,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Typeable for T where
T: Any, [src]
T: Any,
impl<T> UnsafeAny for T where
T: Any, [src]
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,