Module
PuduLangDocgen.Site.Print
Printable documents assembled from tables of contents
Types
| Name | Description |
|---|---|
Printable |
One document to print and the settings of its table |
Functions
| Name | Description |
|---|---|
documents |
A printable document for every table of contents whose metadata sets `pdf`. Each lists its pages in reading order after an optional cover (`pdfCoverPage`) and contents page (`pdfTocPage`); `pdfFileName` names the output beside the table. |
rebase |
Page HTML moved into a printed document: ids gain a prefix, links to pages in the document become section links, and other relative addresses are rebased to the document. |
documents
fn documents(pages: &Array[Docgen.Page], books: &Array[Site.Book]) -> Array[Printable]
A printable document for every table of contents whose metadata sets pdf. Each lists its
pages in reading order after an optional cover (pdfCoverPage) and contents page
(pdfTocPage); pdfFileName names the output beside the table.
Parameters
pages&Array[Docgen.Page]books&Array[Site.Book]
Returns
Array[Printable]
rebase
fn rebase(body: Str, page: Str, document: Str, numbers: &Map[Str, Int], prefix: Str) -> Str
Page HTML moved into a printed document: ids gain a prefix, links to pages in the document become section links, and other relative addresses are rebased to the document.
Parameters
bodyStrpageStrdocumentStrnumbers&Map[Str, Int]prefixStr
Returns
Str
Constants
| Name | Description |
|---|---|
FOOTER |
Footer used when a table names none: the page number over the page count. |
FOOTER
const FOOTER: Str
Footer used when a table names none: the page number over the page count.
Type
Str