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
|
|
|
|
2020-06-29 18:02:05 +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,
|
2020-06-29 18:02:05 +00:00
|
|
|
};
|
2021-02-04 08:54:12 +00:00
|
|
|
use errors::Result;
|
2017-08-24 23:38:03 +00:00
|
|
|
|
2018-10-09 12:33:43 +00:00
|
|
|
use std::path::Path;
|
2017-03-06 14:45:57 +00:00
|
|
|
|
2017-03-03 08:12:40 +00:00
|
|
|
/// Get and parse the config.
|
|
|
|
/// If it doesn't succeed, exit
|
2021-02-04 08:54:12 +00:00
|
|
|
pub fn get_config(filename: &Path) -> Result<Config> {
|
|
|
|
Config::from_file(filename)
|
2017-03-03 08:12:40 +00:00
|
|
|
}
|