Skip to main content

mdbook_structured/
lib.rs

1//! An external mdBook preprocessor that renders structured JSON and YAML
2//! chapters through render and rewrite-links phases, with an install command
3//! and support for the stock HTML renderer.
4
5mod assets;
6mod cli;
7mod config;
8mod destination;
9mod diagnostic;
10mod install;
11mod protocol;
12mod render_book;
13mod rewrite_links;
14mod routes;
15
16pub use cli::run_with_io;
17pub use config::{HtmlPreprocessorContext, RenderOptions, RewriteOptions};
18pub use diagnostic::{
19    AliasCandidateFact, AppDiagnostic, AppDiagnosticCategory, AppDiagnosticKind,
20    ChapterDiagnosticFact, MdBookPathHazardFact, RouteCollisionGroup,
21};
22pub use install::{InstallReport, InstallState, install_assets};
23pub use render_book::{render_book, rewrite_book_links};
24pub use rewrite_links::rewrite_chapter_links;
25pub use routes::{
26    ChapterOrdinal, ChapterTarget, LinkResolution, LinkRouteMap, LogicalChapterPath, OutputRoute,
27    ProjectedChapter, RenderRoutePlan, StructuredExtension, StructuredSource,
28    preflight_render_routes,
29};