@opensyntaxhq/autodocs
v2.1.0
Published
CLI for Autodocs documentation generator
Downloads
44
Maintainers
Readme
@opensyntaxhq/autodocs
Engineer-first documentation generator for TypeScript.
Install
npm install -D @opensyntaxhq/autodocsRun via local binary:
npx autodocs build
# or
npm exec autodocs buildIf you want autodocs available globally in your shell:
npm install -g @opensyntaxhq/autodocsQuick start
npx autodocs init
npx autodocs build
npx autodocs serveCommands
autodocs init- createautodocs.config.*autodocs build- generate docs and UI indocs-distautodocs watch- incremental rebuilds with cacheautodocs serve- serve the generated siteautodocs check- validate configuration and inputs
Config
import { defineConfig } from '@opensyntaxhq/autodocs';
export default defineConfig({
input: 'src',
output: 'docs-dist',
plugins: [
{ name: '@opensyntaxhq/autodocs-plugin-markdown', options: { sourceDir: 'docs' } },
{
name: '@opensyntaxhq/autodocs-plugin-examples',
options: { validate: true, outputDir: 'examples' },
},
],
});Notes
Set SITE_URL (env or config) to generate sitemap.xml and robots.txt.
From 2.0.1+, the React UI assets are bundled with the CLI package, so autodocs build static output does not require installing a separate UI package.
