What's new

Changelog•5 min read|
|

All notable changes to DocsLit, organized by release.

0.3.0 (2026-12-02)

Agent discovery: HTML pages link to their Markdown copies. Static hosts mark .md files noindex, advertise llms.txt and skills with Link, and send Content-Signal when configured; negotiated Markdown gets noindex and a canonical link. agents.markdownFrontmatter adds title, description, URL, update date and token count. Builds also write sitemap.md, changes.md and crawler-specific robots.txt groups. See How agents read your site and Search and SEO. Agent renditions: add docs/<id>.agent.md to replace the content agents read in Markdown copies, llms-full.txt, MCP results and negotiated responses; HTML and search stay unchanged. Renditions work per locale and version, and validation warns about orphaned files. See Conditional content. Agent skills: add skills/<name>/SKILL.md and builds publish it under .well-known/agent-skills/ and the legacy .well-known/skills/, plus a generated skill.md. Readers install them with npx skills add <url>; agents.skills: false disables output. Validation reports invalid skills. See Publish agent skills. Pattern redirects: redirects accepts { source, destination, permanent } rules with named parameters and wildcards. permanent: false creates a 302; builds write rules to _redirects and vercel.json, and validation checks rules and targets. Mintlify and Fern imports retain patterns. See Redirects and Static hosting. Zero-config projects: docslit.json is optional. A docs/ folder works with build, dev, validate, lint and mcp; DocsLit generates the sidebar, uses the folder name as the site name, and derives missing titles from the first H1 or filename. See Quickstart and Frontmatter. Changelog filters and RSS: wc-update entries get stable anchors and tagged changelogs get an automatic filter. With url set, each changelog page gets an RSS feed; rss-title and rss-description customize item text. See Update entries. MCP tools, prompts and resources: reader mode and generated mcp-server.js add code-example and navigation tools, documentation prompts, and docs://page/<slug> resources. See MCP server. Agent file fixes: basePath is included in agent URLs; reader mode skips llms.txt optional links, and search excludes the "For AI agents" note. Builds add .nojekyll for GitHub Pages .well-known/ files. SEO extras: seo.titleTemplate controls page titles; seo.organization adds a publisher to JSON-LD, with the logo and footer.socials as sameAs. See Search and SEO. Report an issue link: issueUrl adds a prefilled link beside "Edit this page"; true derives the new-issue URL from a GitHub or GitLab editUrl. See Site chrome. Brand asset detection and monogram favicon: DocsLit detects favicon.*, logo.* and logo-dark.* in common asset folders when unset. Without a favicon, the build generates an accent-colored site monogram. See Logo. Faster first image: the first content image loads eagerly with fetchpriority="high". See Markdown basics. Faster page rendering: pages load a small core module and only the component families they use. Block components upgrade near the viewport, while deep links, table-of-contents jumps and printing render required content immediately. Search builds its index on first use; the full docslit.js bundle remains available. See Why DocsLit. hreflang only for translated pages: tags include only available locales, the default locale and x-default. See Internationalization. docs/index.md: no longer redirects to itself. llms.txt for large sites: agents.llms.fullMaxChars truncates llms-full.txt at a page boundary with a warning; indexMaxChars splits large indexes into section files. Tabs get their own indexes, which docslit mcp <url> follows. See How agents read your site. WebMCP tools (experimental): set agents.webmcp to true to register browser search, read and navigation tools. See WebMCP tools. Open in Claude Code and Codex, one-click MCP install: the contextual menu accepts Claude Code, Codex, Cursor MCP and VS Code MCP actions; wc-prompt supports Claude Code and Codex. The default menu is unchanged. See Contextual menu. Base-path MCP links: install links and copied commands include basePath. More analytics presets: analytics.provider accepts Clarity, Hotjar, Segment, Mixpanel and Amplitude; each supports siteId as a key alias and tracks in-site navigation. Custom scripts can listen for docslit:navigate. See Analytics presets. Mintlify CSS compatibility: stylesheets can use Mintlify ids, classes and [data-component-part] hooks; builds rewrite these to DocsLit elements and ::part() selectors. Layout regions expose data-layout-item, and <html> exposes data-current-path. Set cssHooks: false to disable rewrites. See Custom CSS. Translated sites: each locale now has its own search index, llms.txt, llms-full.txt and sitemap.md; landing pages follow sidebar order. Vercel agent headers: docslit deploy --vercel includes Link and Content-Signal headers. Accessibility checks: docslit check a11y runs axe-core in Chromium on every page of a built site, in light and dark themes, and exits with code 1 when a violation reaches --fail-on. See Accessibility checks. Mintlify compatibility mode: run docslit dev or build in a Mintlify repo to convert and serve from a local cache; --no-compat disables this mode. See Try DocsLit without converting. Accessibility and component fixes: dimmed walkthrough steps and code lines, wc-versions, wc-page-meta, the wc-visibility badge and the minimal, outlined and danger button variants meet WCAG AA contrast in both themes. File trees use the disclosure pattern instead of orphaned tree items, scrollable tables are reachable with the keyboard, and the API playground's selects have labels. wc-visibility takes audience in place of role, which still works. Changelog filters have proper spacing, and nonnumeric version labels no longer get a v prefix. See Accessibility checks. Project-local Playwright: --pdf and check a11y find dependencies installed in your project when run with npx. See Chapter PDF export and Accessibility checks. Imports stay inside the source project: external images, branding, code and snippets—including paths through symlinks—are not copied. Mintlify compatibility mode rejects cache paths outside the project or through symlinks. See Import reference. Repository files in Mintlify imports: AGENTS.md, README.md and similar files are no longer imported as pages. See Import reference.

0.2.2

Lit ships with your site: static builds no longer load Lit from esm.sh. docslit build copies the bundled Lit into docslit-vendor/ next to docslit.js, and the import map points there, so sites render components without a third-party CDN and always run the Lit version DocsLit was tested with. The Lit bundles now share one copy of Lit core, and the lazily loaded Mermaid is pinned to 10.9.8. Safer inline Markdown in attributes: links in wc-endpoint and wc-field descriptions and wc-frame hints only allow relative paths, #anchors, http(s): and mailto: URLs. Other targets, such as javascript:, are shown as plain text, and quotes are escaped. Descriptions from third-party OpenAPI specs could previously run script on the docs site.

0.2.1

Python API reference: document a Python package with mkdocstrings-style ::: directives and no Python at build time. docslit api python mypkg --pages runs Griffe once to write api/python/mypkg.json (commit it), adds a python setting to docslit.json and scaffolds one page per public module. Pages get headings, signatures, parameter tables, examples and callouts. [text][pkg.Obj] cross-references resolve across pages, the build writes an objects.inv for intersphinx, and docslit validate reports missing data, missing objects and unresolved references. docslit import keeps mkdocstrings directives and writes the python setting. See Python API reference and Migrate from MkDocs. Code annotations: add the annotate flag to a fence (```python annotate) and end a comment with (1), (2), and so on ((1)! hides the comment characters). The ordered list right 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. Missing lists, markers or items are reported as build warnings. docslit import converts Material for MkDocs code annotations to this syntax. See Code blocks. Better MkDocs import: Material grid cards become wc-tiles of wc-card. Material Design, Octicons and Simple Icons shortcodes are mapped to the closest Lucide or Font Awesome icon, and icons with no faithful match are listed in MIGRATION.md. Emoji shortcodes become Unicode. Blog plugin posts keep their metadata, get generated blog index, category and archive pages, and the old dated URLs redirect to the new pages. See Migrate from MkDocs. Faster, leaner builds: --incremental (or "build": { "cache": true }) 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 build cache. OG images render in a worker pool, are cached and are about 5x smaller. Very large sites no longer run out of memory, and docslit validate is about 4x faster on large sites. See Commands. Open Graph images are opt-in: docslit build no longer generates an image per page unless you pass --og-images or set "ogImage": true or "build": { "ogImages": true }. Pages keep their og:title and og:description tags either way, and --no-og-images turns them off for one build. Node.js 22.22.0 or later is now required.

0.2.0

Themes: six prebuilt looks, default, peppermint, frond, tonal, folio and ledger, with thirteen palettes, brand colors, fonts, corner radius and appearance settings. Switch with "theme": "peppermint" or docslit theme use, try every combination live with docslit dev --theme-picker or the built-in themePicker, and read the design tokens with docslit theme tokens. Derived colors meet WCAG AA, and existing configs render exactly as before. See Themes, Palettes and brand colors and Design tokens. Switch from Mintlify or Fern in one command: docslit import was rewritten on a real MDX parser. It converts every Mintlify and Fern component, code block, snippet, link and asset, maps docs.json, mint.json and docs.yml navigation, branding, redirects and analytics, picks a matching theme, validates the result and writes MIGRATION.md with a file, line and fix for everything that needs a human. New flags are --from, --theme, --no-theme, --versions, --force and --json, and GitBook projects are covered too. See Migrate from Mintlify, Migrate from Fern, Migrate from GitBook and the component mapping. Switch from MkDocs, Material for MkDocs or Zensical in one command: docslit import reads mkdocs.yml or zensical.toml and maps the navigation, site settings, branding, palette and fonts, analytics and redirects. Pages convert to plain Markdown: admonitions, collapsibles, content tabs, snippets, code block options, Mermaid, icons and math. MIGRATION.md lists every Jinja expression, theme override, plugin and mike version that was not carried over. See Migrate from MkDocs. Agent-driven migration: the MCP tool convert_mdx converts one Mintlify, Fern, GitBook or MkDocs page without writing anything and returns the issues to fix. get_project_info now reports the theme and the available themes and palettes. See Migrate with your AI agent. Component parity with Mintlify and Fern: new wc-embed, wc-github-repo, wc-walkthrough, wc-colors and wc-if, and new attributes across callouts (danger, check, launch, icon, color), banners, badges, tooltips, updates, frames, accordions, asides, steps, tabs, views, file trees, cards, tiles, buttons, prompts, tables, fields, downloads, copy chips, images and includes with props. See Callouts and alerts, Embeds and media, Walkthrough and Cards and tiles. Conditional content: wc-if includes or removes content at build time by version, locale, variable or audience. for="agents" appears only in the Markdown that AI agents read, and for="humans" only on the web. See Conditional content. Build-time icons: icons resolve to inline SVG from Lucide and Font Awesome Free, with no CDN request, so they work offline. Write a bare name, Font Awesome classes such as fa-solid fa-gear, lucide:zap, an emoji, an image or inline SVG, and set icons.library to choose which library wins. docslit validate flags unknown icons with a suggestion. See Icons. Code block features: highlighted and focused lines, diff and error notation, line numbers with a start line, collapsible long blocks, wrapping, icons, and dropdown code groups that sync by language. Mintlify and Fern fence options work as they are. See Code blocks. Navigation parity: top-level tabs in the header or the sidebar, anchors, sidebar icons, badges, availability and hidden pages, external links in the sidebar, groups with a linked root, navbar dropdowns, buttons, a primary button and a GitHub star count, light and dark logos, footer columns and social icons, site layout settings, seven page layouts with hide_toc, toc_depth and more, and a configurable contextual menu. See Tabs and anchors, Page layout, Site chrome and Contextual menu. Behavior changes for Mintlify-style tags: the build step that reads Mintlify tags written in Markdown no longer adds a title to callouts (<Note> is a plain note callout) and no longer numbers steps, because both are automatic. Panel becomes wc-aside, Tabs sync with each other, and Icon and Tooltip convert instead of being removed. Hidden pages are built: a page with hidden: true is built and reachable even when no sidebar lists it, and it stays out of the sidebar, search, llms.txt and the sitemap. Sidebar links are written as absolute paths, so they work from any page depth. layout: changelog, blog and post (and the aliases landing and centre) are valid page layouts. In frontmatter, tag still means the page-header category, and the sidebar badge is badge. See Pages and navigation. MCP server: docslit mcp runs a Model Context Protocol server over stdio. In a project it offers 14 authoring tools, resources and prompts. With a URL it reads and searches any published DocsLit site. docslit mcp --print-config prints client config. See MCP server. Agent setup: docslit agents init writes AGENTS.md, Claude Code skills, Cursor, Copilot, Windsurf and Gemini files, and merges MCP config. docslit init now writes AGENTS.md too. docslit agents print prints the skills. See Agent setup. Machine-readable CLI: docslit components [tag] --json, docslit schema [config|frontmatter], docslit new --json --description --position, and a $schema key in new docslit.json files. See Machine-readable CLI. Validation as JSON: docslit validate --format json prints { ok, summary, issues } with a stable code and a fix for every issue. Line numbers now count from the first line of the file, including frontmatter. See Validation. Lint: docslit lint checks documentation quality with 16 configurable rules, --format pretty|json|github, and disable comments. See Lint. Autogenerated sidebars: "sidebar": "auto" or autogenerate on a group builds the sidebar from docs/. Order with sidebar_position, hide with sidebar: false, and label with _category.json. See Autogenerated sidebars. Collapsible sidebar groups: add collapsed to any group. The reader's choice is remembered. Code import: fence meta file=, lines= and region= pull code from real source files at build time. See Import code from files. Math: $$...$$ and math fences render with KaTeX at build time. Opt in to $...$ with math.singleDollar, or turn math off with "math": false. See Math. Synced tabs: give wc-tabs and wc-code-group the same sync key and they switch together, remembered across pages. See Tabs and accordions. Page feedback widget: the feedback option adds "Was this page helpful?" with an optional endpoint, analytics events and a docslit:feedback browser event. See Page feedback widget. Reader polish: headings show a copy-link icon, and kbd and details elements have styles. DocsLit Cloud for agents: every published site has a hosted MCP endpoint at /mcp, a /.well-known/mcp.json descriptor, and Accept: text/markdown negotiation. See DocsLit Cloud. Breaking: docslit build no longer writes functions/ into your project. It writes only into the output folder and refreshes an existing generated functions/_middleware.js. Run docslit deploy --cloudflare after a build to install it for Cloudflare Pages. Breaking: docslit login uses your account password or a dashboard token. It prompts for email and a hidden password, or takes --token <token>. It no longer creates accounts: sign up on the website and verify your email first. Use DOCSLIT_TOKEN and DOCSLIT_API_URL in CI, and docslit logout to remove and revoke the token. docslit rollback takes a deploy id. See DocsLit Cloud. Cloud publishing limits: uploads are limited in zip size, file count and file size, and plans limit projects, monthly deploys and rollback. Hosting files such as _middleware.js, functions/, vercel.json, _headers, _redirects and mcp-server.js are not served. Importer mappings: Mintlify Danger becomes a callout of type error. Badge color becomes variant. Expandable defaultOpen becomes open. Update label becomes version. ParamField keeps its location as in. Unsupported attributes such as Card color and Frame type are dropped. Search: the bundled FlexSearch now keeps its default export, and --offline builds ship a classic-script copy, so search works again, including from file://. Generated mcp-server.js: it now uses newline-delimited JSON-RPC, the standard MCP stdio framing, and negotiates protocol versions correctly. Code blocks: multi-line code blocks no longer render double-spaced, and line numbers no longer count a phantom last line. Fenced filename and linenumbers now take effect. Versioned mcp-server.js: the generated server now reads each version's folder, takes an optional version argument and defaults to your default version. Validation: validate now checks component attributes, values and nesting, reports code-import failures and invalid math with their own codes, understands runtime wc-var variables, and checks bare relative image paths. lint --fix is gone, and sidebar_title, new --position and deploy --out work as documented. Asset paths: logo, favicon and css files are copied to the same relative path the HTML references, including files in subfolders. Search engine 404s and canonical warnings: every link the build generates, including OpenAPI sidebar items, the Docs and API Reference mode links and tab links, is now an absolute path with basePath, the locale and the version, so it resolves from any page depth. The site, version and locale roots redirect to the first page instead of copying it, and the sitemap lists only canonical page URLs. robots.txt no longer lists llms.txt as a sitemap, basePath reaches the sitemap, robots.txt, the version switcher and version links, untranslated locale pages are built with a canonical link to the default-locale page, and offline builds use #page links that work from file://. See Search and SEO. Markdown negotiation on Vercel: the Accept: text/markdown rewrite in dist/vercel.json never ran. New docslit deploy --vercel writes a project-root middleware.js that serves a page's Markdown, plus a vercel.json if you have none. Every host's middleware now reads quality values in the Accept header, and llms.txt no longer contains a placeholder {slug}.md URL that link checkers flagged. See Content negotiation. Docs: the AI Skills page moved to Agent setup. The old URL redirects there.

0.1.11

AsciiDoc tables: author tables with AsciiDoc syntax via <wc-asciidoc-table>. Column specs, spans, alignment, cell styles, CSV/DSV/TSV, titles, and footers. Parsed at build time into real HTML tables. See AsciiDoc tables. Apache-2.0 license: the DocsLit CLI is now licensed under Apache-2.0 (was AGPL-3.0). DocsLit Cloud remains a separate proprietary product. Node.js >=20.19.0: engines no longer require Node 24. Installs work on common CI images and corporate machines running Node 20 or 22. Vendored FlexSearch: client search loads a local FlexSearch bundle instead of esm.sh, so air-gapped and CSP-restricted environments work reliably. Site chrome: configure navbar, footer, head, css, analytics (Plausible, PostHog, GA4, Fathom), and favicon in docslit.json. See Site chrome. basePath: deploy under a subpath such as GitHub Pages project sites (https://user.github.io/repo/). Asset URLs, SPA navigation, and sitemaps respect the prefix. Redirects: site-level redirects in docslit.json and frontmatter redirect emit meta-refresh stubs plus _redirects / vercel.json entries for Netlify, Vercel, and Cloudflare. API playground: <wc-playground> lets readers try OpenAPI endpoints from the docs (auth, params, live response). Scaffold and ref resolution wire it automatically. Optional playground.proxyUrl for CORS proxies. See OpenAPI integration. Changelog / blog + RSS: pages with layout: changelog|blog (or under changelog/ / blog/) get dated collection support and build-time rss.xml / atom.xml feeds when url is set. Images: lazy loading, lightbox zoom via <wc-image>, dark-mode variants (#dark= / dark-src), and build-time width/height for CLS. Docs assets are served in dev and copied on build. Social / OG images: each page gets a build-time card (og/{page}.png) with title and site name; og:image and twitter:card=summary_large_image are set automatically. Opt out with ogImage: false. Section search: headings get stable IDs at build time; the search index returns Page → Heading chunks with anchor links, and page bodies are trimmed to keep the index smaller. Sitemap lastmod: uses git history (mtime fallback) per page instead of stamping today’s date on every URL. i18n: locale trees like docs.fr/ / docs.ja/, locale switcher, hreflang tags, and per-locale sidebars. See Internationalization. docslit new and docslit deploy: scaffold pages into the sidebar; write GitHub Pages, Netlify, or Cloudflare recipe files. See Commands and Static hosting. Validate for CI: docslit validate --external checks outbound links; --format github prints Actions annotations for inline PR feedback. See Validation. Plugin hooks: optional docslit.config.js with transformPage and onBuildEnd escape hatches. Shiki highlighting now persists a disk cache across runs for faster rebuilds. Copy page dropdown: the per-page action bar replaces the old copy/view Markdown buttons with a split Copy page dropdown. Options: copy the page as Markdown for LLMs, open the page in ChatGPT, open in Claude, and copy the npx MCP install command for the site's MCP server. Agent directives and root llms.txt for versioned sites: every HTML page and Markdown output file now includes an in-band agent directive pointing to the documentation index. Versioned sites get a root /llms.txt that acts as a version index, listing each version with a link to its own llms.txt. Follows the Agent-Friendly Documentation Spec. Frontmatter titles in sidebar: pages now use their frontmatter title in the sidebar instead of falling back to the filename when a title is set. Versioned doc links: links inside web components in versioned sites now resolve correctly relative to the page's URL rather than the site root.

0.1.10

Custom logo: set "logo": "logo.svg" in docslit.json to replace the default favicon in the navigation bar with your own logo. Place the image file in your project root and it will be copied to the build output automatically. See Logo. Chapter PDF export: run docslit build --pdf to generate chapter PDFs (one per sidebar group), per-page PDFs, and a full documentation PDF in dist/pdf/. Readers get a Download PDF dropdown on each page. Configure via the pdf block in docslit.json, or enable permanently with "enabled": true. Requires Playwright as an optional peer dependency. See Chapter PDF export. Color presets and brand themes: set "theme": "ocean" (or teal, slate, forest, violet, rose, amber, graphite) in docslit.json to apply a professional color palette with full light and dark support. Define corporate branding with docslit theme init, which scaffolds a brand-theme.json file you can extend from any preset and override accent colors, surfaces, fonts, and radius. See Theming. Announcement banner: add an announcement block to docslit.json to show a dismissible site-wide banner at the top of every page. The message supports Markdown and HTML. Readers can dismiss it; updating the message brings it back. Version-specific overrides are supported in versions.list. Fern imports pick up announcement from docs.yml. See Announcement banner.

0.1.9

Accessibility settings widget: a new accessibility button in the navbar opens a settings panel with text size adjustment, high contrast mode, grayscale mode, and underline links toggle. Settings are stored in localStorage and persist across page reloads. The widget works in all three modes (dev, static, offline) and respects the offline security model with event delegation. Favicon and edit-this-page link: static builds now include a favicon and an "Edit this page" link on every page. The edit URL is auto-detected from your Git remote, so no manual configuration is needed for GitHub-hosted projects. Typography refinements: text rendering is improved across all platforms with font smoothing, OpenType features (ligatures, kerning, contextual alternates), and refined letter and word spacing for body text, headings, and code blocks. wc-tree-item now accepts a title attribute as an alias for label, improving compatibility with imported content.

0.1.8

Multi-file offline builds with lazy loading: offline mode now splits into per-page JS files that load on demand via script injection, working directly from file:// URLs without a server. Vendor JS is inlined as data URIs to avoid CORS restrictions. Hash-based navigation handles file:// with History API fallback, and delegated click handlers support links inside web components. SEO-only artifacts are skipped in offline mode. See Offline builds. Parallel builds and caching: page builds now run in parallel, Shiki syntax highlighting results are cached, and languages load lazily on demand. The dev server caches build artifacts for faster reloads. Build timing is reported so you can see where time is spent. Reduced layout shift and faster loading: docslit-app.js is now deferred and Google Fonts CSS loads asynchronously with metric-matched fallback fonts. Layout space is reserved for wc-columns, wc-tiles, wc-tabs, and wc-accordion before component upgrade to eliminate cumulative layout shift. Dynamic meta descriptions: the SPA shell now includes a <meta name="description"> tag that updates dynamically during navigation across all three modes. Falls back to config.description when pages lack a frontmatter description. Reusable content includes: DocsLit now supports compile-time includes with <wc-include src="..."/>. Includes are intentionally strict: targets must be Markdown files under docs/_reusables/**, include tags must be self-closing, and unsafe paths are blocked. Variable precedence for compile-time rendering: {{VAR}} placeholders in prose now resolve with clear precedence: global attributes in docslit.json, then page frontmatter attributes, then page-local <wc-var name="X" value="Y" /> declarations. Pass-through escape syntax: use pass:[...] to render syntax literally when you are documenting templates or components. Example: {{TOKEN}} or <wc-include src="..." />. Expanded Markdown for AI consumers: markdown output now uses preprocessed content (includes and compile-time variables resolved), improving quality for llms-full.txt, search indexing, and markdown-based AI ingestion. Version-aware global variables: two built-in globals are now available on every page: {{DOCSLIT_VERSION}} and {{DOCSLIT_BRANCH}}. Offline build security hardening: offline builds are now hardened for secure, air-gapped environments. All inline event handlers (onclick, oninput, etc.) are replaced with event delegation. User-facing values are HTML-escaped to prevent DOM-based XSS. Google Fonts and all external requests are removed. WCAG contrast improvements: light-mode text and accent colors are darkened for WCAG AA compliance. Theme toggle and copy buttons get proper aria-label attributes, and the menu button meets minimum touch target size requirements. Nested include checks no longer fail when reusable files contain include syntax only inside fenced code examples. Inline literal rendering now uses explicit ... behavior, avoiding accidental formatting regressions while keeping variable syntax usable in normal prose. Validator now resolves relative internal links correctly and excludes reusable files under docs/_reusables/ from validation. Versioned offline builds no longer write null shared files to disk. Mobile sidebar now extends to the full viewport height instead of stopping short on pages with little content.

0.1.7

Syntax highlighting with Shiki: code blocks now use Shiki for build-time highlighting with dual-theme support. Blocks automatically match your page's light or dark theme, and a kebab menu on every code block lets readers switch code between light and dark mode independently of the page theme. The preference is saved for future visits. See Code blocks. Copy button on code groups: tabbed code groups now include a copy button matching individual code blocks, so readers can copy the active tab's code without selecting text. Opt-in line numbers: add linenumbers="true" to any code block to display a non-selectable line number gutter. Line numbers are off by default and only appear when explicitly requested. Save as PDF: a "Save as PDF" button now appears in the page toolbar alongside "Copy as Markdown" and "View as Markdown". It produces clean print output with all accordions and tabs expanded, page chrome hidden, and page breaks prevented inside code blocks and tables. Generate API docs from OpenAPI specs: point DocsLit at your OpenAPI 3.x spec and run docslit openapi scaffold to generate a complete API reference site. Every endpoint gets its own page with parameters, request bodies, response fields, and examples pulled directly from the spec. See OpenAPI integration. API reference layout: API pages now use a dedicated three-column layout with your endpoint documentation on the left and code examples on the right, similar to Stripe and Twilio docs. Organized API sidebar: the sidebar automatically mirrors your spec's tag structure with nested groups and color-coded HTTP method badges (GET, POST, PUT, DELETE) next to each endpoint. Rich parameter documentation: request parameters and body fields display their type, format, constraints (min/max length, allowed values, patterns), defaults, and examples. Nested objects and arrays are rendered as collapsible sections. Response schema documentation: response body fields are extracted from the spec and displayed with the same rich formatting as request parameters, including nested structures. Redesigned parameter fields: the wc-field component now uses a single-column Stripe-style layout with inline expand/collapse for nested fields and a dedicated box for enum values. New attributes let you display parameter location, format, constraints, and inline Markdown descriptions. Hybrid sidebar: sites with both regular documentation and an OpenAPI spec now get separate "API Reference" and "Documentation" sidebars with toggle links in the nav bar. Mobile API examples: on smaller screens (1280px and below), API examples now appear below the main content instead of being hidden. AI-readable API docs: when AI agents request your API pages, they get clean Markdown with parameter tables, field descriptions, and JSON examples instead of raw component tags. Works with any agent that reads Markdown. MCP server for AI tools: every build generates an MCP server that AI tools like Claude Desktop and Cursor can connect to. Agents can list pages, read full content, and search your docs without leaving their workflow. Content negotiation: AI agents can request any page URL with Accept: text/markdown to get raw Markdown instead of HTML. Works out of the box on Cloudflare Pages, Vercel, and Netlify. AI authoring and migration skills: install skill files into Claude Code, Cursor, or Windsurf so your AI assistant knows how to write correct DocsLit pages and convert existing MDX docs. See Agent setup. Sidebar search no longer breaks method badges -- filtering and clearing the search input keeps badges intact. Switching between API pages no longer shows leftover request and response examples from the previous page. Code group theme toggle dropdown no longer gets clipped by the tab bar. OpenAPI scaffold now properly escapes frontmatter values containing special YAML characters.

0.1.6

Drop-in MDX support: PascalCase component names like <Tip>, <Card>, and <Steps> now work directly in Markdown files. DocsLit recognizes roughly 25 Mintlify and MDX component names and rewrites them to their DocsLit equivalents at parse time. Most Mintlify projects can be moved over without changing source files. See Markdown basics. Full-text search: press Cmd+K (or Ctrl+K) to open a search dialog that searches across all pages with instant results as you type. Results are grouped by sidebar section with highlighted matches and full keyboard navigation. Multi-version documentation: host multiple versions of your documentation on a single site with a version selector. Versions map to git branches, so teams can maintain separate branches for each product release and build them into a unified site with versioned URLs. See Versioning. Active section tracking: the table of contents on the right now shows a colored guide line that follows you as you scroll. The active section updates smoothly, and clicking a heading highlights it instantly. Fenced code block variables: {{VAR}} placeholders in fenced code blocks now update in real time when readers edit a variable on the page. All fenced code blocks also get copy buttons automatically. Inline variable references: {{VAR}} patterns in regular Markdown text are automatically converted to live variable displays that update when the variable is changed elsewhere on the page. Copy as Markdown and View as Markdown: every page now shows buttons to copy the raw Markdown source to your clipboard or open it in a new tab. Per-route HTML pages: static builds now generate a full HTML file for every page route instead of a single SPA shell. Your site works on any static host without rewrite rules or fallback configuration. SEO improvements: static builds now generate robots.txt, sitemap.xml, Open Graph and Twitter Card meta tags, canonical URLs, and JSON-LD structured data automatically. See Search and SEO. Accordion group component: a new wc-accordion-group component visually connects adjacent accordions into a unified group with shared borders. Custom 404 page: navigating to a non-existent page now shows a styled error page with a search button and a link back to your docs. Sidebar keyboard navigation: arrow keys, Home, End, Enter, and Escape now work in the sidebar filter for fast navigation without a mouse. Expanded import detection: the import tool now recognizes 11 documentation frameworks including Docusaurus, MkDocs, Sphinx, ReadMe, VuePress, VitePress, Starlight, and Nextra, in addition to Mintlify, Fern, and GitBook. Import versioning: importing a Mintlify project with multiple versions now offers four strategies: branch-based versioning, keep only latest, merge all versions, or skip for manual setup. Icon support: built-in Lucide icons are available via wc-icon, and Font Awesome icons from imported projects are fetched from CDN and rendered inline. Nested page IDs: page slugs in docslit.json now support folder paths (e.g., getting-started/introduction) for organizing pages in subdirectories. Accessibility improvements: skip-to-content link, focus traps in search, prefers-reduced-motion and prefers-contrast support, ARIA tab patterns with arrow key navigation, visible focus indicators, and semantic landmarks across all components. Search result navigation no longer stacks path segments on nested page IDs. Web components are no longer stripped during client-side navigation. Tiles grid layout no longer overlaps when using auto-fill columns.

0.1.5

Client-side Markdown rendering: published sites now fetch and render Markdown in the browser, so pages load without a server-side rendering step. llms.txt improvements: generated llms.txt files now include clearer instructions showing where to fetch raw Markdown for each page. Import resilience: the import tool now handles malformed frontmatter, invalid YAML, and inline JSX expressions without crashing.

Earlier releases

  • Fixed padding in tabbed panels, file tree lines, highlighted filenames in light mode, and inline anchor layout
  • Shareable anchor links — clicking any heading in the "On this page" sidebar updates the URL so you can copy and share a direct link to any section
  • Security hardening for the dev server and auth token storage
  • DocsLit is now open source under the AGPL-3.0 license
  • Free for personal and open source projects — the docs you generate are always yours
  • Cards and tiles now support icons via the iconName attribute
  • Dark and light mode works across all components — switching themes updates everything instantly
  • Mobile sidebar with hamburger menu, slide-in overlay, and tap-outside-to-close
  • Browser back/forward button works correctly when navigating between pages
  • Lit vendor bundles ship locally — no CDN requests, fully offline capable
  • Code blocks display source text correctly — no more disappearing angle brackets
  • New components: file trees, visual trees, download buttons, copy-to-clipboard, anchor links, and version badges
  • Built-in preview server for browsing component examples locally

The first public release of DocsLit with:

  • Markdown rendering with web component preservation
  • 39 built-in Lit web components
  • Dev server with hot reload
  • Static site builder
  • Offline single-file builds
  • Mintlify, Fern, and GitBook migration
  • Project validation
  • DocsLit Cloud deployment