Expand description
Markdown to a full page: the rendered file inside the document’s frame.
Re-exports§
pub use crate::markup::title;
Constants§
- FRAME_
IDS - The ids of devpage’s own frame — the page, the sidebar and its tree, the
navbar, the theme corner and the comments — used by
assets/style.cssandassets/devpage.js. They all start withdevpage-, so a heading’s id, taken from its text, matches one only if the heading spells it out; such a heading’s id gets-headingadded, so a frame id is never a heading’s.
Functions§
- doc
- A doc: every chapter on one page, in order, with an outline of the chapters’ headings beside them. In print mode the outline and the live connection are left out and the page size is the doc’s paper.
- escape
- front_
matter - The YAML of a page’s front matter: what lies between a
---on its first line and the next line that is---, if the page opens with one. - html_
open - The page’s
<html>tag, carrying the served folder’s mount when it has one, for the page script and the design script to ask their endpoints under. - invalid
- A document file that can’t be loaded: a page listing what is wrong with it.
- markdown
- Renders Markdown to HTML, highlighting fenced code (see
highlight), turning an image of a design into its canvas (seeembed_designs) and drawing each Mermaid fence (seediagrams). - markdown_
in - Renders a page’s Markdown, the tags of
widgetsexpanded first. - page
- The whole page for one Markdown file: navigation, the rendered content and
the scripts that mount its widgets and keep it live.
commentsis whether comments are on.foundis the page’s problems, listed above it. - slides
- A deck: every slide on its own 1920 × 1080 stage, scaled to the window as a whole, one shown at a time. In print mode each slide is one 16:9 page.
- tab_
title - A site page’s tab title:
<page> · <site>, or just the site’s name when the page is titled like it (trimmed, ignoring case).