Skip to content
DocsLit

Release notes 1 min read

DocsLit 0.1.8: offline builds, includes and faster builds

DocsLit 0.1.8 reworks offline builds to run from file:// URLs, adds reusable content includes and variable precedence, and speeds up page builds.

DocsLit 0.1.8 is mostly about two things: offline builds that work without a server, and authoring tools for reusing content across pages.

Offline builds that open from disk

Offline mode now splits the output into per-page JS files that load on demand, so the docs work straight from file:// URLs. Vendor JS is inlined as data URIs to avoid CORS restrictions. For air-gapped use, inline event handlers are replaced with event delegation, user-facing values are HTML-escaped, and Google Fonts and other external requests are removed. See Offline builds.

Reusable content and variables

You can now include shared Markdown at compile time with <wc-include src="..." />. Includes are strict by design: targets must be Markdown files under docs/_reusables/**, the tag must be self-closing, and unsafe paths are blocked. See Reusable content.

{{VAR}} placeholders in prose resolve in a fixed order: global attributes in docslit.json, then page frontmatter attributes, then page-local <wc-var name="X" value="Y" /> declarations. Two built-in globals, {{DOCSLIT_VERSION}} and {{DOCSLIT_BRANCH}}, are available on every page. To show this syntax literally in your own docs, use the new pass-through escape. The rules are on the variables and precedence page.

Faster, steadier pages

  • Page builds run in parallel, Shiki results are cached, and languages load lazily. Build timing is reported so you can see where time goes.
  • docslit-app.js is deferred and Google Fonts CSS loads asynchronously with metric-matched fallback fonts.
  • Space is reserved for wc-columns, wc-tiles, wc-tabs and wc-accordion before they upgrade, which removes layout shift.
  • The page meta description now updates during navigation, falling back to config.description.

Markdown output now uses preprocessed content, so llms-full.txt and search indexing see resolved includes and variables. Background on that is in How AI agents read your docs.

Upgrade

Full details are in the changelog. Run npm install -g docslit@latest, or use npx docslit@latest.