pub struct HtmlConfig {
pub theme: Option<PathBuf>,
pub default_theme: Option<String>,
pub curly_quotes: bool,
pub mathjax_support: bool,
pub google_analytics: Option<String>,
pub additional_css: Vec<PathBuf>,
pub additional_js: Vec<PathBuf>,
pub playpen: Playpen,
pub no_section_label: bool,
pub search: Option<Search>,
pub git_repository_url: Option<String>,
pub git_repository_icon: Option<String>,
// some fields omitted
}
Configuration for the HTML renderer.
The theme directory, if specified.
The default theme to use, defaults to 'light'
Use "smart quotes" instead of the usual "
character.
Should mathjax be enabled?
An optional google analytics code.
Additional CSS stylesheets to include in the rendered page's <head>
.
Additional JS scripts to include at the bottom of the rendered page's
<body>
.
Don't render section labels.
Search settings. If None
, the default will be used.
Git repository url. If None
, the git button will not be shown.
FontAwesome icon class to use for the Git repository link.
Defaults to fa-github
if None
.
Returns the directory of theme from the provided root directory. If the
directory is not present it will append the default directory of "theme"
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static