Skip to main content
Document export turns markdown into files you can hand to people: a PDF report, a standalone HTML page, a slide deck, or a documentation site. Export one page, or a whole folder compiled into a book. There are two ways to export:
  • From the web UI, any page can be saved as a PDF in the browser, with nothing installed on the server.
  • From the CLI, REST API, or MCP, KiwiFS runs Pandoc, Marp, or MkDocs on the server for every format and option.

Export a page from the web UI

Open a page, click the page actions menu, and choose Export as PDF. The web UI compiles the PDF in your browser with Typst. Wiki links print as their link text, and embeds such as ![[diagram.png]] are left out. The same menu has Export as Markdown, which downloads the page’s source file.
The browser loads the Typst compiler from the jsDelivr CDN the first time you export, so the browser needs internet access.

Server-side export

Terminal
Without -o, the file is named after the input, such as report.pdf. The CLI shares its --root, --path, and --output flags with data export.
Rendering stops after five minutes.

Formats and required tools

For PDF, KiwiFS uses Typst when it’s installed and falls back to XeLaTeX. Over REST and MCP, mkdocs and docs are aliases for site.
The KiwiFS Docker image includes Pandoc, Marp CLI, Chromium, and MkDocs, but not Typst or XeLaTeX. Server-side PDF export in the container fails with no PDF engine available until you add one, for example in a derived image. In-browser PDF export from the web UI works either way.

Options

KiwiFS looks for the citation style as .kiwi/references/<name>.csl, then <name>.csl at the knowledge root. Put the CSL file for apa, ieee, or any other style in one of those places. Without a matching file, Pandoc uses its default style.

Export a folder as a book

When path is a folder, KiwiFS stitches its pages into one document with a table of contents. It orders pages by:
  1. The parts list in a _book.yaml file in the folder, if there is one.
  2. Otherwise, an order or nav_order frontmatter field, then a numeric file name prefix such as 01-intro.md, then the file name.
handbook/_book.yaml
_book.yaml can also set date, lang, theme, and template.

Data export

JSONL, CSV, and Parquet.

Publishing

Share pages on the web without exporting.
Last modified on October 19, 2026