zola/components/config/src/lib.rs

23 lines
468 B
Rust
Raw Normal View History

2018-10-09 12:33:43 +00:00
mod config;
pub mod highlighting;
2018-10-31 07:18:57 +00:00
mod theme;
2021-03-12 21:30:33 +00:00
use std::path::Path;
pub use crate::config::{
languages::LanguageOptions,
link_checker::LinkChecker,
link_checker::LinkCheckerLevel,
search::{IndexFormat, Search},
slugify::Slugify,
taxonomies::TaxonomyConfig,
Config,
};
use errors::Result;
/// Get and parse the config.
/// If it doesn't succeed, exit
pub fn get_config(filename: &Path) -> Result<Config> {
Config::from_file(filename)
}