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.
generated
A page the site document makes from something other than a file of its own — a code reference’s — rendered at the address it is shown at, and the sidebar open at current: the page itself, or the nearest page above it the sidebar lists — listing found above it. It shows no comments, which belong to files.
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.
missing
The site document’s page for an address with nothing at it, rendered from the site’s 404.md. Shown at that address, not its own, so its relative links are pointed at their served addresses; it shows no comments and lists no problems — devpage check reports its own.
nothing_at
devpage’s own page for address, with nothing at it, when the site document has no 404.md: in the site’s frame, as its 404.md would be, offering meant — the address it most likely meant — and the site’s root.
nothing_at_alone
devpage’s own page for asked, an address with nothing at it, outside any site: alone, in the theme of entry, the served document, offering meant and where / leads.
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.
workspace
A package workspace uses the ordinary site frame and React lifecycle, with the available content area allocated to the tool instead of an article.