devpage_core/page/mod.rs
1//! A page, rendered in two phases. The content phase turns one file's
2//! Markdown into [`Rendered`]: its HTML and every link it holds, by file and
3//! line. The preview and `devpage check` judge that, and the frame phase puts
4//! it inside its document's frame — a site's page, a doc, a deck — with the
5//! problems found listed above it. [`ids`] answers which ids a link into
6//! another page can land on, from that page's content phase, without
7//! building its frame. Also the canvas
8//! page, a design alone in the window, and the page of a document file that
9//! can't be loaded.
10
11mod canvas;
12mod content;
13mod frame;
14pub(crate) mod markdown;
15pub(crate) mod navbar;
16mod sidebar;
17
18/// The one HTML escape, for the binary's own HTML.
19pub use crate::html::escape;
20pub use canvas::canvas;
21pub use content::{Link, Rendered, content, ids, read, shown_by, shown_in};
22pub use frame::{
23 doc, generated, invalid, missing, nothing_at, nothing_at_alone, page, slides, workspace,
24};
25
26#[cfg(test)]
27mod tests;