Skip to main content

euv_docs/
lib.rs

1//! euv-docs
2//!
3//! Cross-platform documentation viewer and static site generator powered by
4//! euv and euv-ui, parsing Markdown and YAML frontmatter into native UI scenes
5//! or static HTML/JSON bundles.
6
7mod generator;
8mod model;
9mod parser;
10mod viewer;
11
12#[cfg(test)]
13#[path = "../tests/mod.rs"]
14mod tests;
15
16pub use {generator::*, model::*, parser::*, viewer::*};
17
18pub(crate) use parser::{
19    deduplicate_slug, heading_level_num, load_doc_site_excluding, section_sort_rank,
20    should_skip_dir, slugify,
21};
22
23#[cfg(test)]
24use std::env;
25use std::{
26    collections::{BTreeMap, BTreeSet},
27    ffi::OsStr,
28    fs::{self, DirEntry},
29    io::{self, Error, ErrorKind},
30    mem::take,
31    path::{Component, Path, PathBuf},
32    str::Chars,
33};
34
35use {
36    chrono::Utc,
37    euv::*,
38    euv_ui::*,
39    lombok_macros::{Data, Getter, New},
40    pulldown_cmark::{
41        Alignment, CodeBlockKind, CowStr, Event, HeadingLevel, Options, Parser, Tag, TagEnd,
42    },
43    serde::{Deserialize, Serialize},
44    serde_json::{to_string, to_string_pretty},
45    serde_yaml::from_str,
46};