This repo generates the docs and setup guide for Onyx found at https://docs.onyx.app/.
It uses Mintlify, a low-code documentation generation tool.
More info on Mintlify found here.
To make changes, check out docs.json.
Install the Mintlify CLI to preview the documentation changes locally.
To install, use the following command (requires node >= v19.0.0)
npm i -g mintlify
Run the following command at the root of your documentation (where docs.json is)
mintlify dev
Changes are automatically deployed to production after merging to main.
- Mintlify dev isn't running - Run
mintlify installto re-install dependencies. - Page loads as a 404 - Make sure you are running in a folder with
docs.json - Mintlify Docs - https://mintlify.com/docs/introduction
A comprehensive Markdown/MDX formatter with intelligent formatting rules for documentation sites.
Usage:
# Check which files would be reformatted (exits with code 1 if changes needed)
python scripts/format_docs.py --check
# Apply formatting changes to files
python scripts/format_docs.py --write
# Set custom line width (default: 120)
python scripts/format_docs.py --write --width 100What it does:
-
File scope: Processes all
*.md,*.mdx,*.markdownfiles recursively -
Indentation: Converts tabs to 2-space indentation; normalizes list indents to multiples of 2
-
Container normalization: Properly formats nested structures like:
<Steps>with<Step>children<Accordion>with<AccordionItem>children<Columns>with<Card>children<CardGroup>with<Card>children- Content inside containers gets indented one level deeper
-
Spacing control: Ensures single blank lines around:
- Headings and horizontal rules
- Images (Markdown
![...]and MDX<Image>) - Block-level components (
<Steps>,<Accordion>, etc.) - Code fences (removes blanks after opening, adds after closing)
-
Advisory blocks: Expands single-line tags to multi-line format:
<Warning>This is a warning</Warning> # Becomes: <Warning> This is a warning </Warning>
-
Text wrapping: Reflows paragraphs to target width while preserving:
- Code blocks and fenced code
- Tables and complex formatting
- Lines with backticks, URLs, or HTML/MDX tags
- List item continuation indentation
-
Import cleanup: Splits merged imports and fixes missing
importkeywords -
YAML frontmatter: Repairs malformed frontmatter and normalizes quoted values
-
Quality checks:
- Reports numbered lists (suggests using
<Steps>/<Step>instead) - Warns about missing spaces after list markers (
1.item→1. item) - Warns if
icon:field missing from frontmatter (except in excluded directories)
- Reports numbered lists (suggests using
-
Link validation: Runs
mintlify broken-linksif available (install:npm i -g mintlify)
- Reintroduce the First Look page when bandwidth allows
- Add visuals for the Use Cases page