🚀 Features
- Generate plain Markdown and llms.txt from OpenAPI specs - by @enzonotario in #364 (8f58b)
generateLlmsFiles(inbuildEnd) writes a.mdnext to each operation, tag, overview and whole-spec page, plusllms.txtandllms-full.txt.llmsDevServerserves the same files in dev.- Each operation includes servers, authorization, parameters, request body and responses (schemas and examples), and code samples.
maxSize(default 5 MB) writes a summary instead of oversized whole-spec, tag andllms-full.txtfiles.- Node API (
operationToMarkdown,generateMarkdownFiles,generateMarkdown) and CLI:npx vitepress-openapi generate openapi.json --out docs/api, to write static, searchable.mdpages into your docs. - See Markdown & llms.txt. Live demo:
/llms.txt,getAllArtists.md.