This directory contains scripts for generating documentation from the Lingo.dev source code.
This script generates reference documentation for Lingo.dev CLI.
pnpm --filter docs run generate-cli-docs [output_directory]- Loads the CLI program from the
clipackage. - Walks through top-level commands and their subcommands.
- Generates an
.mdxfile for each top-level command with structured reference content.
- When running inside a GitHub Action, this script comments on the PR with the Markdown content.
- When running outside of a GitHub action, the script writes one
.mdxfile per top-level command to the provided directory.
This script generates reference documentation for the i18n.json file.
pnpm --filter docs run generate-config-docs [output_file_path]- Converts the Zod schema into a JSON Schema.
- Walks through all properties on the schema.
- Generates a Markdown file with the complete property reference.