DocsLit 0.1.5: markdown for agents and a tougher import
DocsLit 0.1.5 serves raw markdown in dev, improves llms.txt, fixes build size reporting and makes docslit import cope with messy MDX and frontmatter.
DocsLit 0.1.5 is a smaller release focused on two things: making page source easier for agents to fetch, and making imports survive messy input.
Markdown for agents and tools
Published sites now fetch .md files on demand and render them in the browser with marked and DOMPurify. The local dev server also serves raw markdown at both /page.md and /docs/page.md, so agents and local tooling can read source files while you work. See reading agents.
Generated llms.txt files now carry a short header note explaining where raw markdown lives, using the {slug}.md URL pattern. If you are new to the format, read what is llms.txt, or the docs page on search and SEO.
More forgiving import
docslit import now handles malformed MDX frontmatter and JSX expressions instead of failing:
- Invalid YAML falls back to a regex parse.
- Frontmatter values containing HTML or JSX are stripped.
- Inline JSX interpolations outside code blocks and spans are removed.
The import behaviour is described in the import reference.
Smaller fixes
- The reported size of the build output was about 1000 times too small because of a unit mismatch. It is now accurate.
archiverwas replaced withfflatefor zip creation, so client-side publishing matches server-side extraction.docslit publishoutput now shows compressed and uncompressed sizes. See DocsLit Cloud.
Full details are in the changelog. Upgrade with npm install -g docslit@latest, or run npx docslit@latest.