The PDF
One PDF of all the pages, with a cover, contents and bookmarks.
Make it#
ringdoc pdfThe site is built first when its pages are missing. The files are <output>/pdf/<name>-documentation.html and .pdf. The PDF is printed by headless Chrome or Edge; without one, only the HTML page is made and it can be printed to PDF from any browser.
What is in it#
- a cover, then the contents (the groups of
:pages); - every page in the order of the project, each on a new page;
- links between pages that go to the place inside the PDF, and bookmarks for the outline of the viewer;
- the folded source blocks are open;
- cards and rows of numbers become tables.
A link to something that is not a page of the project is shown as plain text.
The cover#
The default cover is a plain page with the name, the tagline and the description. A file cover.svg in the project folder replaces it: @NAME@ and @TAGLINE@ in the file are replaced by the name and the tagline.
Tip
pdf --html-only makes just the HTML page, useful to look at the print layout in a browser.