Skip to content
DocsLit

Release notes 1 min read

DocsLit 0.2.1: Python API reference and faster builds

DocsLit 0.2.1 adds a Python API reference, code annotations, a better MkDocs import and incremental builds. Open Graph images are now opt-in.

DocsLit 0.2.1 adds a Python API reference that needs no Python at build time. It also brings code annotations, a better MkDocs import and noticeably faster builds.

Python API reference

Document a Python package with mkdocstrings-style ::: directives. Running docslit api python mypkg --pages uses Griffe once to write api/python/mypkg.json (commit it) and scaffolds one page per public module. Pages get signatures, parameter tables and examples, and [text][pkg.Obj] cross-references resolve across pages. docslit validate reports missing data, missing objects and unresolved references. See Python API reference.

Code annotations

Add the annotate flag to a fence and end a comment with (1), (2) and so on. The ordered list after the block holds the notes. Each marker becomes a numbered badge that opens its note in a popover, and without JavaScript the list stays visible under the code. See Code blocks.

MkDocs import and faster builds

The MkDocs importer now turns Material grid cards into wc-tiles, maps icon shortcodes to Lucide or Font Awesome icons, keeps blog posts with generated index and archive pages, and redirects old dated URLs. It also converts Material code annotations. See Migrate from MkDocs.

For build speed, --incremental reuses unchanged pages and assets. --no-search-index, --no-llms-txt, --no-mcp and --no-sitemap skip individual generators, --profile prints per-phase timings and docslit cache clean clears the cache. Very large sites no longer run out of memory. See Commands.

Changes to be aware of

  • Open Graph images are now opt-in. Pass --og-images or set "ogImage": true to generate them. Pages keep their og:title and og:description tags either way.
  • Node.js 22.22.0 or later is now required.

Full details are in the changelog. Upgrade with npm install -g docslit@latest, or run npx docslit@latest.