Expand description
ADR-0089 Phase 4: HTML rendering via pulldown-cmark.
The flow is: we already have Markdown for each page (from
markdown::render_markdown), so HTML rendering is “feed it through
pulldown-cmark and wrap the result in a minimal <html> skeleton”.
GFM extensions (tables, footnotes, strikethrough, task lists) are
enabled — without these the output looks noticeably worse than what
users expect from cargo doc.
Functions§
- render_
html - Render a single item page as a standalone HTML document.
- render_
html_ with - ADR-0089 Phase 5: render a single item page, rewriting intra-doc
links against
table. When called from the site driver,tableis usuallyDocSite::link_table(). - render_
index_ html - Render the per-file index page (
<file>/index.html). - render_
index_ html_ with - Render the per-file index page with intra-doc link rewriting.
- render_
site_ index_ html - Render the top-level site index listing every file.
- render_
site_ index_ html_ with_ title - Render the top-level site index with a custom page title (ADR-0092:
gruel docuses the manifestnamehere when one is present).