Skip to main content

Module page

Module page 

Source
Expand description

A page, rendered in two phases. The content phase turns one file’s Markdown into Rendered: its HTML and every link it holds, by file and line. The preview and devpage check judge that, and the frame phase puts it inside its document’s frame — a site’s page, a doc, a deck — with the problems found listed above it. ids answers which ids a link into another page can land on, from that page’s content phase, without building its frame. Also the canvas page, a design alone in the window, and the page of a document file that can’t be loaded.

Structs§

Link
A link the content holds: what it names as written — an href, a src, or a design the Markdown embeds — the file it is written in, and the line, when its text is found in the file.
Rendered
One file’s content as its page shows it.

Functions§

canvas
The canvas page for the design at path in served: the design fills the window, drawn by the design script — in theme when the address names one, set before the page paints and never remembered.
content
file’s content from source, the tags of widgets expanded first.
doc
A doc: every chapter’s rendered content 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
The one HTML escape, for the binary’s own HTML. text safe in HTML: in an element’s text and in a double-quoted attribute value.
ids
Every id a link’s #fragment into file can land on, as its page renders them: the ids of the content phase, the tags of its document’s widgets expanded, read through modules — without building the frame. A Markdown file’s are its content’s, as the document it is shown in renders it; a doc’s are its chapters’, each prefixed with its chapter’s name when there is more than one, and the chapters’ own names. Anything else has none.
invalid
A document file that can’t be loaded: a page listing what is wrong with it — None for a file outside the served folder, which is never shown.
page
The whole page for one Markdown file of the site document: navigation, the file’s rendered content and the scripts that mount its widgets and keep it live. comments is whether comments are on; found is the page’s problems, listed above it. The navbar and the sidebar are drawn from one navigation tree, built once for the page. None for a file outside the served folder, which is never shown.
read
file’s content as read from the disk now; a file that can’t be read has none.
shown_by
The file of the document a Markdown file is shown in, unloaded: its nearest site’s document file, or in no site the file itself.
shown_in
The document a Markdown file is shown in at its own address: its nearest site; in no site, the file alone, as a doc of one chapter. None when its site can’t be read: its page then shows why, and none of the file.
slides
A deck: every slide’s rendered content 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.