This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the documentation source for Galette, a membership management web application. Documentation is written in reStructuredText (.rst) and built with Sphinx. It is published to doc.galette.eu via ReadTheDocs.
Current Galette version documented: 1.2.1 (defined in source/conf.py and source/globals.rst).
For reference, source code is available locally at ~/Workdir/php-eclipse_workspace/Galette and plugins source are at ~/Workdir/php-eclipse_workspace/Galette/galette/plugins/.
Install dependencies first:
pip install -r requirements.txtCommon build targets:
make html # Build HTML output → build/html/
make linkcheck # Check all external links for integrity
make gettext # Extract translatable strings → source/locale/*.pot
make clean # Remove build directory
make pdf # Build PDF (requires rst2pdf)
make latexpdf # Build PDF via LaTeXTo build for a specific language (e.g. French):
sphinx-build -b html -D language=fr source build/html/frsource/index.rst— master toctree; entry pointsource/conf.py— Sphinx configuration (version, theme, locale settings)source/globals.rst— Global RST substitutions (|stable_version|,|folder|, etc.) used across all pages; marked:orphan:so it doesn't appear in the TOCsource/installation/— Installation manualsource/usermanual/— User manualsource/faq/— FAQ sectionsource/plugins/— Plugin documentationsource/changelogs/— Per-major-version changelogs (galette_06.rst … galette_10.rst)source/_styles/— Custom Sphinx theme (galette) and static assetssource/locale/— Translations in gettext format (.po/.mo files), one subdirectory per language code
The primary language is English. Translations are managed via Weblate. The workflow is:
make gettextregenerates.pottemplate files insource/locale/- Translators update
.pofiles insource/locale/<lang>/LC_MESSAGES/ - Sphinx compiles
.pofiles automatically during the build
Language codes present: ar, br, ca, de, es, fr_FR (symlinked as fr), it, nb_NO, oc, ota, pt, ru, si, ta, tr, uk.
source/globals.rst defines substitutions that can be used anywhere with |stable_version|, |folder|, |file|, |phpfile|. To use them in a page, include:
.. include:: /globals.rstWhen updating the Galette version, change both source/conf.py (version and release) and the |stable_version| replacement in source/globals.rst.
The HTML theme is named galette, located at source/_styles/templates/galette/. Static assets (CSS, images) are in source/_styles/static/.
source/changelog.rst aggregates changelogs. The current-cycle file (changelogs/galette_10.rst) is marked :orphan: but included inline via .. include::. Older versions are linked via toctree. When starting a new major version cycle, create a new changelogs/galette_XX.rst, mark it :orphan:, update the include directive in changelog.rst, and add the previous file to the toctree.