mod config;
mod theme;

use std::path::Path;

pub use crate::config::{
    Config,
    languages::LanguageOptions,
    link_checker::LinkChecker,
    link_checker::LinkCheckerLevel,
    markup::{HighlightStyle, Highlighting, Markdown},
    search::{IndexFormat, Search},
    slugify::Slugify,
    taxonomies::TaxonomyConfig,
};
use errors::Result;
pub use giallo::Registry;

/// Get and parse the config.
/// If it doesn't succeed, exit
pub fn get_config(filename: &Path) -> Result<Config> {
    Config::from_file(filename)
}
