KHAL uses two source-control surfaces intentionally:Documentation Index
Fetch the complete documentation index at: https://docs.khal.ai/llms.txt
Use this file to discover all available pages before exploring further.
- Private KHAL Gitea for internal product engineering, private app repos, platform work, and day-to-day team collaboration.
- Public GitHub repositories only for the public docs repo and repos that still need public SaaS integration, currently including app-kit and desktop.
Keep Mintlify connected to the public docs repository. Do not point Mintlify at private KHAL Gitea or grant docs tooling access to private engineering repos.
Public docs stay on GitHub + Mintlify
The public FDE manual is published from the public docs repository and served by Mintlify atdocs.khal.ai.
Use this path for changes to the public manual:
- Edit the docs repository.
- Open a normal docs pull request.
- Let the existing Mintlify integration publish after merge.
Private engineering work uses KHAL Gitea
If you are working on private KHAL source code, use the internal Gitea host and credentials provided during onboarding. Do not paste private host tokens into docs, screenshots, logs, issues, or examples. A typical workstation check looks like this:Public examples must not leak private topology
When documenting a workflow publicly:- use public GitHub URLs for public docs/examples;
- use placeholders such as
<private-khal-gitea-repo-url>for private repos; - never include tokens, credential-helper output, private org inventories, admin usernames, internal IPs, or migration/cutover notes;
- do not claim a mirror or internal checkout is the source of truth unless the repo owner has explicitly cut it over.
Some internal repositories may be mirrored while the team transitions tools. A mirror is not automatically the writable source of truth. Follow the repo owner’s current onboarding note for the authoritative remote.
Smoke test without exposing secrets
For an internal repository, a safe clone smoke test records only non-secret evidence:Quick decision table
| Work surface | Source control | Deploy/publish path |
|---|---|---|
| Public docs and FDE manual | Public GitHub docs repo | Mintlify |
| GitHub-hosted exceptions such as app-kit/desktop | Public GitHub repo | GitHub + required public SaaS/cloud integrations |
| Private KHAL platform/app work | Internal KHAL Gitea | Internal CI/deploy path for that repo |
| Temporary mirrored checkout | Mirror/transport only | Not a source-of-truth change by itself |