What's new
All notable changes to DocsLit, organized by release.
0.3.0 (2026-12-02)
.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.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.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.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.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.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-server.js add code-example and navigation tools, documentation prompts, and docs://page/<slug> resources. See MCP server.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.titleTemplate controls page titles; seo.organization adds a publisher to JSON-LD, with the logo and footer.socials as sameAs. See Search and SEO.issueUrl adds a prefilled link beside "Edit this page"; true derives the new-issue URL from a GitHub or GitLab editUrl. See Site chrome.favicon.*, logo.* and logo-dark.* in common asset folders when unset. Without a favicon, the build generates an accent-colored site monogram. See Logo.fetchpriority="high". See Markdown basics.docslit.js bundle remains available. See Why DocsLit.x-default. See Internationalization.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.agents.webmcp to true to register browser search, read and navigation tools. See WebMCP tools.wc-prompt supports Claude Code and Codex. The default menu is unchanged. See Contextual menu.basePath.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.[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.llms.txt, llms-full.txt and sitemap.md; landing pages follow sidebar order.docslit deploy --vercel includes Link and Content-Signal headers.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.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.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.--pdf and check a11y find dependencies installed in your project when run with npx. See Chapter PDF export and Accessibility checks.AGENTS.md, README.md and similar files are no longer imported as pages. See Import reference.0.2.2
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.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
::: 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.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.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.--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.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
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.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.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.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.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.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.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.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.<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: 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.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.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.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.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.docslit lint checks documentation quality with 16 configurable rules, --format pretty|json|github, and disable comments. See Lint."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.collapsed to any group. The reader's choice is remembered.file=, lines= and region= pull code from real source files at build time. See Import code from files.$$...$$ and math fences render with KaTeX at build time. Opt in to $...$ with math.singleDollar, or turn math off with "math": false. See Math.wc-tabs and wc-code-group the same sync key and they switch together, remembered across pages. See Tabs and accordions.feedback option adds "Was this page helpful?" with an optional endpoint, analytics events and a docslit:feedback browser event. See Page feedback widget.kbd and details elements have styles./mcp, a /.well-known/mcp.json descriptor, and Accept: text/markdown negotiation. See DocsLit Cloud.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.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._middleware.js, functions/, vercel.json, _headers, _redirects and mcp-server.js are not served.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.--offline builds ship a classic-script copy, so search works again, including from file://.mcp-server.js: it now uses newline-delimited JSON-RPC, the standard MCP stdio framing, and negotiates protocol versions correctly.filename and linenumbers now take effect.mcp-server.js: the generated server now reads each version's folder, takes an optional version argument and defaults to your default version.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.logo, favicon and css files are copied to the same relative path the HTML references, including files in subfolders.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.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.0.1.11
<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.>=20.19.0: engines no longer require Node 24. Installs work on common CI images and corporate machines running Node 20 or 22.esm.sh, so air-gapped and CSP-restricted environments work reliably.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 in docslit.json and frontmatter redirect emit meta-refresh stubs plus _redirects / vercel.json entries for Netlify, Vercel, and Cloudflare.<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.layout: changelog|blog (or under changelog/ / blog/) get dated collection support and build-time rss.xml / atom.xml feeds when url is set.<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.og/{page}.png) with title and site name; og:image and twitter:card=summary_large_image are set automatically. Opt out with ogImage: false.Page → Heading chunks with anchor links, and page bodies are trimmed to keep the index smaller.lastmod: uses git history (mtime fallback) per page instead of stamping today’s date on every URL.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.docslit validate --external checks outbound links; --format github prints Actions annotations for inline PR feedback. See Validation.docslit.config.js with transformPage and onBuildEnd escape hatches. Shiki highlighting now persists a disk cache across runs for faster rebuilds.npx MCP install command for the site's MCP server.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.title in the sidebar instead of falling back to the filename when a title is set.0.1.10
"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.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."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 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
wc-tree-item now accepts a title attribute as an alias for label, improving compatibility with imported content.0.1.8
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.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.<meta name="description"> tag that updates dynamically during navigation across all three modes. Falls back to config.description when pages lack a frontmatter description.<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.{{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:[...] to render syntax literally when you are documenting templates or components. Example: {{TOKEN}} or <wc-include src="..." />.llms-full.txt, search indexing, and markdown-based AI ingestion.{{DOCSLIT_VERSION}} and {{DOCSLIT_BRANCH}}.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.aria-label attributes, and the menu button meets minimum touch target size requirements.... behavior, avoiding accidental formatting regressions while keeping variable syntax usable in normal prose.docs/_reusables/ from validation.0.1.7
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.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.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.Accept: text/markdown to get raw Markdown instead of HTML. Works out of the box on Cloudflare Pages, Vercel, and Netlify.0.1.6
<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.{{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.{{VAR}} patterns in regular Markdown text are automatically converted to live variable displays that update when the variable is changed elsewhere on the page.robots.txt, sitemap.xml, Open Graph and Twitter Card meta tags, canonical URLs, and JSON-LD structured data automatically. See Search and SEO.wc-accordion-group component visually connects adjacent accordions into a unified group with shared borders.wc-icon, and Font Awesome icons from imported projects are fetched from CDN and rendered inline.docslit.json now support folder paths (e.g., getting-started/introduction) for organizing pages in subdirectories.prefers-reduced-motion and prefers-contrast support, ARIA tab patterns with arrow key navigation, visible focus indicators, and semantic landmarks across all components.0.1.5
llms.txt files now include clearer instructions showing where to fetch raw Markdown for each page.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
iconNameattribute - 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