What's new
All notable changes to DocsLit, organized by release.
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
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