Docs Workflow
Loong keeps public docs deliberately split across three layers so the landing page stays readable while the deeper public contract remains easy to maintain.Put The Right Content In The Right Place
| If the content is… | Put it here | Why |
|---|---|---|
| repository landing-page positioning or first navigation | README.md and README.zh-CN.md | the front page should stay short and scannable |
| reader-facing setup guides, tutorials, and operator docs | Mintlify source under site/ | this is the main public docs surface |
| source-level public specs and supporting reference markdown | repository docs/ | these files support builders and source readers without becoming a second homepage |
- README explains what Loong is and where to begin.
- Mintlify docs under
site/carry the main public walkthroughs. - Repository markdown under
docs/holds supporting public references and source-facing contracts.
Language Scope
- The main repository supports Simplified Chinese only for
README.zh-CN.md. - The Mintlify docs source under
site/is English-only for now. - If broader docs i18n is added later, it should happen at the docs-site layer rather than by expanding repository-wide markdown translation.
If You Introduce Docs i18n Later
Use this order instead of translating the repository wholesale:- Keep
README.zh-CN.mdas the only in-repo translated markdown unless the repository language policy is intentionally expanded. - Add locale routing and translated navigation at the Mintlify layer first.
- Translate the reader path in this order: overview, get-started pages, provider/channel setup guides, then the most-used playbooks.
- Keep
docs/source indexes, release-governance files, and other maintainer-facing repository markdown English unless there is a specific public reason to surface translated summaries in the docs site.
- one canonical English source should continue to drive public contract edits, even if translated Mintlify pages are added later
Docs Validation Loop
Run Mintlify checks fromsite/, not from the repository root.
broken-linksis the fastest structural validation pass.exportproves the site can still compile as a full static artifact.- GitHub Actions runs the same two checks in the
docs-sitejob so pull requests and local runs stay aligned. - running from
site/avoids unrelated root-level parsing noise - Node 20.20.2 is the current verified local toolchain for Mintlify in this repository
- the Mintlify CLI version is pinned to avoid transient npm tag drift
--yeskeeps the validation path non-interactive for contributor shells and CI-like local runs- the PATH override is required because Mintlify spawns
nodefrom the shell path during startup - if
exportwrites the zip and then appears to stay inpreparing export, verify the archive and stop the process instead of treating that local CLI hang as a docs-content failure
Deployment Model
Loong’s public docs are meant to deploy from this same repository as a monorepo docs surface.| Setting | Current value |
|---|---|
| repository root | this repository |
| docs source path | /site |
| config file | site/docs.json |
| deployment shape | Mintlify monorepo subdirectory deployment |
- do not invent a public docs URL in README copy until the Mintlify deployment is actually connected and serving the site
Connect Mintlify To This Repository
Repository changes alone do not switch hosting on. The repository-side work only makes the docs source verifiable and ready to connect. Use this dashboard checklist when you wire Mintlify to the repo:- In Mintlify dashboard
Git Settings, install the Mintlify GitHub App for this repository. - Limit repository access to the repository that actually contains the
site/source. - Set the publishing branch to the branch you intentionally use for docs deployments.
- Enable monorepo mode and set the docs path to
/sitewithout a trailing slash. - Save the Git settings and verify Mintlify resolves
site/docs.jsonfrom that directory. - Confirm a pull request preview and a branch deployment before publishing a docs URL from any README or release note.
- verify the dashboard branch matches the branch you are pushing to
- verify the GitHub App is installed on the correct repository selection
- re-check the monorepo path for an accidental trailing slash or wrong directory
- use Mintlify’s dashboard troubleshooting flow before changing repository docs copy
Docs Contribution Checklist
- Put the change in the right layer before editing anything.
- Keep README changes at the landing-page level instead of turning it back into a manual.
- Prefer
site/for new reader-facing guides, recipes, and walkthroughs. - Keep backlog-heavy working notes and internal authoring history out of the public navigation.
- Re-run Mintlify validation when the site navigation, page links, locale wiring, or deployment path assumptions change.
Continue Reading
- Continue to Contributing for the public contribution entrypoint.
- Continue to Contribution Workflow for the standard PR and validation bar.
- Continue to Documentation Policy for the boundary and editorial contract.