Struct gutenberg::Config [] [src]

pub struct Config {
    pub title: String,
    pub base_url: String,
    pub highlight_code: Option<bool>,
    pub highlight_theme: Option<String>,
    pub description: Option<String>,
    pub language_code: Option<String>,
    pub generate_rss: Option<bool>,
    pub rss_limit: Option<usize>,
    pub generate_tags_pages: Option<bool>,
    pub generate_categories_pages: Option<bool>,
    pub insert_anchor_links: Option<bool>,
    pub extra: Option<HashMap<String, Toml>>,
}

Fields

Title of the site

Base URL of the site

Whether to highlight all code blocks found in markdown files. Defaults to false

Which themes to use for code highlighting. See Readme for supported themes

Description of the site

The language used in the site. Defaults to "en"

Whether to generate RSS. Defaults to false

The number of articles to include in the RSS feed. Defaults to unlimited

Whether to generate tags and individual tag pages if some pages have them. Defaults to true

Whether to generate categories and individual tag categories if some pages have them. Defaults to true

Whether to insert a link for each header like in Github READMEs. Defaults to false The default template can be overridden by creating a anchor-link.html template and CSS will need to be written if you turn that on.

All user params set in [extra] in the config

Methods

impl Config
[src]

Parses a string containing TOML to our Config struct Any extra parameter will end up in the extra field

Parses a config file from the given path

Makes a url, taking into account that the base url might have a trailing slash

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter.

impl PartialEq for Config
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.