Export a PDF

The same content that builds your site can ship as one polished PDF: a title page, a table of contents, and every published page in navigation order.

Run an export

Choose Tools → Codocation → Export PDF, pick where to save the file, and wait for the background task to finish. The notification links to the exported file.

PDF settings

The "PDF" tab of the "Site & Export" tool window configures the document. The same values live under pdf: in codocation.yml:

pdf:
  titlePage:
    enabled: true
  orientation: portrait
  tableOfContents: true
  pageNumbers:
    enabled: true
    format: "{page} of {total}"
    position: bottom-center
  • titlePage adds a cover; its title, subtitle, and logo are configurable in the "PDF" tab.
  • orientation is portrait or landscape.
  • tableOfContents inserts a clickable contents section after the cover.
  • pageNumbers stamps each page; format supports the {page} and {total} placeholders, and position is bottom-left, bottom-center, or bottom-right.

What gets included

The export follows the navigation tree and includes published pages only: drafts and pages hidden from the navigation stay out, the same way they stay off the built site.