Skip to main content

Module document

Module document 

Source
Expand description

A document: what a document file says to show — a site, a doc or slides — or a lone Markdown file, which is a doc of one chapter.

Structs§

Document
A loaded document: its title, its folder, what it is, and where it is served.
Narration
What a deck tells its narrator about the talk as a whole, as written in its document file: who it is for, what it should achieve, how it should sound, and how to say words a voice gets wrong.
NavLink
One link of a site’s navbar, as written: a label, an icon or both, and its target — a path relative to the document file, or an address on the web.
Pdf
A doc’s settings on paper.
Places
The widgets a document shows outside its pages’ text, by place: each a list of widget names, shown in order on every page.
Slide
One slide of a deck: its Markdown file, its notes — the text of its first <Notes>, if it has one — and that <Notes>’ delivery.

Enums§

Kind
What a document is, with its parts resolved to files.
KindName
Which kind a document file names, read without loading the document.
NavItem
An entry of a site’s navbar: a link, or a dropdown of links.
Paper
The paper size a doc is printed on.

Functions§

download_name
The file a document is saved as when nothing names one — what devpage pdf and devpage video write and what a version downloads as: its title, with the characters a file name can’t hold replaced by -, and extension.
downloads_as
What a published document of kind downloads as — a doc or slides printed as a PDF, a design painted as its PNG — as its extension and media type; None for a kind that has no download, a site. The one rule for it, the server’s and devpage download’s.
kind_of
The kind a YAML file names in its top-level kind, when it is one of devpage’s three; any other file is not a document file.