Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Export and print

Save a page, a section or the whole site as PDF, or export Markdown that works offline.

Readers choose Print / Save as PDF in a page's More actions menu, or press Ctrl / ⌘ + P. Only the page itself is on the paper:

  • tabs, code groups, accordions, nested API fields and the example of every response are opened up;
  • long code lines wrap instead of being cut off;
  • dark mode prints in light colors;
  • videos and embedded pages become their address.

To leave the entry out, use theme.page-actions.

Export a section or the whole site

In the console, open the site's overview and select PDF or Markdown… under Export, then pick the language, the version and the contents (everything, a tab, or a section). What you get is the live version, without hidden pages.

Opens the site's print page: a cover, the contents, then every page in the order of the navigation. Once it's ready, choose Save as PDF in the browser's print dialog. The contents and the links between pages work in the PDF.

With a lot of pages, exporting tab by tab or section by section is faster.

Downloads a ZIP with one .md per page; README.md is the table of contents. Links between pages and images point to files in the ZIP, so everything works offline once unpacked. Links to pages outside it keep their address on the site, and so do images and files beyond 50 MB in total. If there is too much content, export tab by tab or section by section.

If the site is password protected, the exported file isn't: anyone who gets it can read it.

Command line

biti export exports the version published on the platform, for example to archive it in CI. Run biti login first (in CI, set BITI_TOKEN):

biti export --format markdown --out docs.zip
biti export --format pdf --only "API Reference" --lang en
--sitestring
Site slug; defaults to the first subdomain label of instances[0].url in docs.yml.
--format"markdown" | "pdf"Default markdown
Markdown is packaged by the platform. PDFs are made by the Chrome, Chromium or Edge on your machine, which opens the site's print page; if it isn't in the usual place, set the CHROME_PATH environment variable. PDF works for public sites only; for a password-protected site, open the print page in your browser and print it there.
-o, --outstring
A .zip, a .pdf, or an empty folder (Markdown). By default the file is named after the site, in the current directory.
--onlystring
Export one tab or section, by its title.
--listboolean
List the languages, versions, tabs and sections.
--lang, --product, --docs-versionstring
Language, product and version; the site's defaults if left out.
--paper"a4" | "letter"Default a4
Paper size of the PDF.

PDFs made by biti export have bookmarks.