This repository manages the build and translation toolchain for The Open Source Way guidebook. For editorial contributions (content, writing, editing), see the guidebook repository instead.
Install uv and run:
uv sync
uv run sphinx-build -b html -c . guidebook _build/html/enTranslation catalogs live in the guidebook/locales/ directory (part of the guidebook submodule). To refresh catalogs after source changes:
SOURCE_DATE_EPOCH=0 uv run sphinx-build -b gettext -c . guidebook _build/gettext
uv run sphinx-intl update -p _build/gettext -l zh_CN --locale-dir guidebook/locales
uv run python tools/i18n/normalize_po_files.py --locale-dir guidebook/localesCheck catalog status:
uv run python tools/i18n/catalog_status.py --locale-dir guidebook/localesRequires XeLaTeX and latexmk locally. CI installs these automatically.
uv run sphinx-build -M latexpdf -c . guidebook _build/pdf/en
uv run sphinx-build -M latexpdf -c . -D language=zh_CN guidebook _build/pdf/zh_CNFor project-wide contribution guidelines, see the guidebook CONTRIBUTING.md.