mirror of
https://github.com/getzola/zola
synced 2025-01-07 09:28:47 +00:00
7000f787b3
* search: Add support for a JSON index * docs: Document JSON index for search * docs: Use lazy-loaded JSON index * Add elasticlunr prefix to search engine format configuration This will be useful if support for more search libraries are added in the future
22 lines
468 B
Rust
22 lines
468 B
Rust
mod config;
|
|
pub mod highlighting;
|
|
mod theme;
|
|
|
|
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)
|
|
}
|