Skip to main content

render_doc

Function render_doc 

Source
pub fn render_doc(
    markdown: &str,
    fallback_title: &str,
    pages: &PublishedPages,
    source: Option<&SourceBase>,
) -> RenderedAdr
Expand description

Render a root-level “lifetime doc” (e.g. the Build Plan) to a themed page. Its [[docs/adr/…]] links resolve into the adr/ subdirectory.

The page is served at the site root — the 0 below — so any ../… link leaves the site; see SourceBase for where those go.