DocsLit 0.1.6: MDX tags, versions and built-in search
DocsLit 0.1.6 adds drop-in MDX tags, multi-version docs, Cmd+K search, per-page static HTML, sitemap and robots.txt, and a sturdier Mintlify import.
DocsLit 0.1.6 is about moving in and finding things. It lets many Mintlify and Fern projects work without editing source files, and adds versioning and search.
MDX tags without conversion
PascalCase tags such as <Tip>, <Card> and <Steps> now work directly in .md files. They are rewritten to the matching wc-* component at parse time, and unknown tags fall back to wc-kebab-case. docslit validate warns when a tag resolves to a component that is not registered. JSX expressions and import statements are not supported, so use docslit import for those. See the component mapping and Mintlify guide.
The import tool also detects 11 frameworks (including Docusaurus, MkDocs, Sphinx and Nextra), offers versioning strategies for Mintlify projects, and flags orphaned pages instead of dropping them. Our migration checklist covers the practical side.
Multi-version docs
Add a versions block to docslit.json and versions map to git branches, with a selector in the nav bar and URLs like /v2/getting-started. Only pages that differ are rebuilt. See versioning.
Search and SEO
- Cmd+K or Ctrl+K opens full-text search, backed by a
search-index.jsongenerated at build time, plus a sidebar filter with keyboard navigation. - Static builds write a full HTML file per page, so no SPA fallback or rewrite rules are needed on your host.
- Builds also generate
robots.txt,sitemap.xml, Open Graph and Twitter Card tags, and JSON-LD structured data.
Details are in search and SEO.
Other changes
Fenced code blocks now render as wc-code-block, with copy buttons and variable substitution (variables). Every page gets "Copy as Markdown" and "View as Markdown" buttons, and page IDs support folders.
Full details are in the changelog. Upgrade with npm install -g docslit@latest, or run npx docslit@latest.