Struct mdbook_angular::Config
source · pub struct Config {
pub builder: Builder,
pub collapsed: bool,
pub playgrounds: bool,
pub tsconfig: Option<PathBuf>,
pub inline_style_language: String,
pub optimize: bool,
pub polyfills: Vec<String>,
/* private fields */
}
Expand description
Configuration for mdbook-angular
Fields§
§builder: Builder
Builder to use to compile the angular code
Default value: Builder::Experimental
collapsed: bool
Whether code blocks should be collapsed by default
This can be overridden via collapsed
or uncollapsed
tag on every
individual code block or {{#angular}}
tag
Note this only takes effect on code blocks tagged with “angular”, it doesn’t affect other code blocks.
Default value: false
playgrounds: bool
Whether playgrounds are enabled by default
This can be overridden via playground
or no-playground
tag on every
individual code block or {{#angular}}
tag.
Default value: true
tsconfig: Option<PathBuf>
Path to a tsconfig to use for building, relative to the book.toml
file
inline_style_language: String
The inline style language the angular compiler should use
Default value: "css"
optimize: bool
Whether to optimize the angular applications
This option is ignored if background is active
Default value: false
polyfills: Vec<String>
Polyfills to import, if any
Note: zone.js is always included as polyfill.
This only supports bare specifiers, you can’t add relative imports here.