Documentation Maintenance
Spec-Craft documentation follows a gettext workflow to manage multiple languages.
Updating the English Source
Modify the
.mdfiles indocs/source/.Run
cd docs && make htmlto verify locally.
Updating Translations (Japanese)
After changing the English source, you must update the message catalogs:
Extract new strings:
cd docs make gettext
Update PO files:
sphinx-intl update -p _build/gettext -l ja
Edit PO files: Translate the strings in
docs/source/locale/ja/LC_MESSAGES/.Build the Japanese version:
make ja
Read the Docs
Pushing to the main branch triggers an automatic build on Read the Docs. Ensure .readthedocs.yaml and docs/requirements.txt are up to date.