Development¶
Esta página solo está disponible en inglés.
Contributions are welcome. To add a new service:
- Create a YAML file in the appropriate
services/subdirectory followingservices/_schema.yml - Generate the guide page with
python scripts/new_service_stub.py <slug>, then write the parts that need a human (CI fails if a service has no guide) - Regenerate the service tables in the README with
python scripts/generate_readme_tables.py, and the guide navigation and index withpython scripts/sync_docs_nav.py(CI fails if either drifts from the YAML) - Submit a pull request
For bug reports and feature requests, open an issue on GitHub.
For UI work, uv run python scripts/ui_demo_seed.py /tmp/cp-demo --serve 8100 serves the app with invented demo data (login demo / demo-password-1), and never touches a real data dir.
node scripts/ui_screenshots.mjs http://127.0.0.1:8100 /tmp/shots all then takes full-page shots of every page and state in every theme in app/themes.json: Classic night (the default, no suffix), then -dark, -light, -sunrise and -warm. Pass one theme id instead of all for just that one. CP_SCALE=2 takes retina shots, CP_SHOT_ONLY=<regex> picks states.
Translating the docs¶
The docs site is in English and 19 other languages. Each language lives at its own path (/es/, /ja/…) and is a separate build of the same pages, made by .github/scripts/docs-i18n.py. A page with no translation shows the English page with a note.
To translate a page, or to fix a translation:
- Write the page at
docs/i18n/<lang>/<path>.md, for exampledocs/i18n/es/faq.mdfordocs/faq.md. The language codes are thelangvalues ofextra.alternateinzensical.toml. Use the words ini18n/glossary.yml. - Put the English page's hash in the front matter:
source_hash: <hash>.checkprints the hash it expects when a page has none. When the English page changes later, the translation shows a note that links the newer English page until someone updates it. - Never translate code blocks, inline code, commands, environment variables, file paths or link targets. Referral links stay exactly as they are, and their disclosure lines are translated in full.
Copy each count marker such as
<!-- n:docker -->21<!-- /n -->as it is: the build fills in the number from the catalog, andcheckfails on a count typed without its marker. - Keep each heading's English id, so links into the page still work:
## Preguntas frecuentes { #frequently-asked-questions }. After an English build,python .github/scripts/docs-i18n.py anchors faq.mdlists them. - Translate the navigation labels and the notes in
docs/i18n/<lang>/locale.toml. - Run the same checks as CI:
python -I .github/scripts/docs-i18n.py check
python -m zensical build --clean --strict
python -I .github/scripts/docs-i18n.py build
python -I .github/scripts/site-check.py site
Pages that stay in English on purpose are listed in docs/i18n/config.toml.