The content and configuration powering the documentation available at docs.invopop.com
Install the Mintlify CLI to preview the documentation changes locally. To install, use the following command:
npm i -g mint
Run the following command at the root of your documentation (where docs.json is)
mint dev
The project includes a script to automatically build invoice examples from minimal JSON files using the GOBL CLI tool.
The build-min-files.sh script:
- Finds all
.min.mdxfiles in the/snippetsdirectory - Extracts JSON from each MDX file's code block
- Builds the JSON using
gobl buildto calculate totals, add UUIDs, and validate - Outputs the built JSON to corresponding
.mdxfiles (without the.minsuffix) - Preserves the original code block title
- Handles errors gracefully and continues processing other files
To use the script:
./build-min-files.shThe script will:
- Process all
.min.mdxfiles in the snippets directory - Overwrite existing
.mdxfiles if they exist - Report any build errors and continue processing
- Display a summary of processed files and errors at the end
Prerequisites: The script requires the gobl CLI tool to be installed and available in your PATH.
If your local preview is out of sync with what you see on the web in the production version, update your local CLI:
mint update
The CLI can assist with validating reference links made in your documentation. To identify any broken links, use the following command:
mint broken-links
You can rename and update all references to files using the following command:
mint rename <oldFilename> <newFilename>
You can use the CLI to check your OpenAPI file for errors using the following command:
mint openapi-check <openapiFilenameOrUrl>