Skip to content
DocsLit

Release notes 1 min read

DocsLit 0.1.10: PDF export, themes and a custom logo

DocsLit 0.1.10 adds chapter PDF export with docslit build --pdf, color presets and brand themes, a custom logo option and a dismissible announcement banner.

DocsLit 0.1.10 gives you more control over how your docs look and what readers can take away: PDF export, color presets, a custom logo and a site-wide banner.

Chapter PDF export

Run docslit build --pdf to generate one PDF per sidebar group, per-page PDFs, and a full documentation PDF in dist/pdf/. Each page gets a Download PDF dropdown. You can configure this in the pdf block of docslit.json, or set "enabled": true to turn it on permanently. Playwright is required as an optional peer dependency. See Chapter PDF export.

Color presets and brand themes

Set "theme": "ocean" in docslit.json to apply a palette with full light and dark support. The other presets are teal, slate, forest, violet, rose, amber and graphite.

For corporate branding, run docslit theme init. It scaffolds a brand-theme.json file that extends any preset and can override accent colors, surfaces, fonts and radius. See Theming.

Logo and announcement banner

  • Set "logo": "logo.svg" in docslit.json to replace the default favicon in the navigation bar. Put the image in your project root and it is copied to the build output. See Logo.
  • Add an announcement block to show a dismissible banner at the top of every page. The message supports Markdown and HTML, and changing the message brings the banner back for readers who dismissed it. Version-specific overrides work in versions.list, and Fern imports pick up announcement from docs.yml. See Announcement banner.

Upgrade

Full details are in the changelog. Run npm install -g docslit@latest, or use npx docslit@latest.