zola/components/config/src/lib.rs

18 lines
395 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
pub use crate::config::{
2021-03-13 20:27:17 +00:00
languages::LanguageOptions, link_checker::LinkChecker, search::Search, slugify::Slugify,
taxonomies::Taxonomy, Config,
};
use errors::Result;
2018-10-09 12:33:43 +00:00
use std::path::Path;
2017-03-06 14:45:57 +00:00
/// Get and parse the config.
/// If it doesn't succeed, exit
pub fn get_config(filename: &Path) -> Result<Config> {
Config::from_file(filename)
}