euv-docs 0.48.2

Cross-platform documentation viewer and static site generator powered by euv and euv-ui.
Documentation
//! euv-docs
//!
//! Cross-platform documentation viewer, static HTML/SVG generator, and
//! multi-locale zero-JS/zero-CSS WebAssembly site builder powered by
//! euv and euv-ui.

#[cfg(not(target_arch = "wasm32"))]
mod bundle;
mod codec;
mod generator;
mod model;
mod parser;
mod viewer;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

#[cfg(not(target_arch = "wasm32"))]
pub use bundle::*;
pub use {codec::*, generator::*, model::*, parser::*, viewer::*};

pub(crate) use parser::{
    deduplicate_slug, heading_level_num, load_doc_site_excluding, section_sort_rank,
    should_skip_dir, slugify,
};

#[cfg(target_arch = "wasm32")]
use std::cell::RefMut;
#[cfg(test)]
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use std::{
    borrow::Cow,
    cell::{Cell, Ref, RefCell},
    cmp::{Ordering, Reverse},
    collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap},
    f32::consts::{FRAC_PI_2, PI, TAU},
    ffi::{OsStr, OsString},
    fmt::{self, Write},
    fs::{self, DirEntry},
    io::{self, Error, ErrorKind},
    iter::Peekable,
    mem::take,
    path::{self, Components, Path, PathBuf},
    rc::Rc,
    str::Chars,
};
#[cfg(not(target_arch = "wasm32"))]
use std::{
    env,
    process::{Command, ExitStatus},
};
use {
    chrono::{DateTime, Utc},
    euv::*,
    euv_ui::*,
    lombok_macros::{Data, Getter, New},
    pulldown_cmark::{
        Alignment, BlockQuoteKind, CodeBlockKind, CowStr, Event, HeadingLevel, Options, Parser,
        Tag, TagEnd,
    },
    serde::{Deserialize, Serialize},
    serde_json::{Value, to_string, to_string_pretty},
    serde_yaml::from_str,
};
#[cfg(target_arch = "wasm32")]
use {
    js_sys::{Function, Promise, Reflect},
    wasm_bindgen::{JsCast, JsValue, closure::Closure},
    wasm_bindgen_futures::{JsFuture, spawn_local},
    web_sys::{Document, HtmlCanvasElement, MediaQueryList, Window, window},
};