Keep AGENTS.md focused on repository-specific guidance; avoid restating standard practices, and link to authoritative project documentation instead of duplicating it.
- Use Conventional Commits with imperative subjects of at most 72 characters.
- Use scopes only for established repository areas.
- For non-trivial changes, use concise lowercase
-bullets in the body to explain the rationale and operationally relevant details. - Keep each bullet concrete and independently legible; omit a body when the subject already explains the complete change.
- Prefer branch-wide issue references in the pull request description. Do not repeat the same issue footer across every commit in a branch. Add a lowercase commit footer only when standalone traceability matters, such as for a direct fix, backport, or independently cherry-picked change.
- Run all project commands inside the Docker Compose
hugoservice viamaketargets. Do not use host-installed tooling. If a command cannot run in the container, explain why and propose a container-based alternative. - Edit authoritative sources, then regenerate.
data/publications.jsonis generated fromassets/bibliographies/publications.bibvia.github/scripts/bibtex_to_json.py. public/is build output. Never edit it directly.- Never commit deploy credentials, API tokens, or analytics keys. Deployment secrets live in GitHub Actions repository secrets.
Prefer make targets. Use Docker Compose directly only when debugging the build system.
| Need | Use |
|---|---|
| Preview site locally | make serve |
| Production-style render | make render |
| Render while another Hugo container is running | make render-site-isolated |
| Regenerate publications JSON from BibTeX | make publications-json |
| Test generated content | make content-test |
| Verify preserved standard editions | make standards-check |
| CI-equivalent production build | .github/scripts/build-site.sh |
Never run make render while make serve or another Hugo container is running: it deletes shared build state and disrupts the live server. Use make render-site-isolated instead.
Pushes to develop trigger the GitHub Pages workflow (.github/workflows/gh-pages.yml). The repository Pages source must be set to GitHub Actions, not a branch.
When modifying hugo.yaml mounts, always include an explicit static -> static mount. Hugo drops the implicit default static/ → public/ copy when any mount is defined, silently removing static assets from the build.
Place @font-face rules in a Hugo template partial (layouts/partials/hooks/head-end.html), not in SCSS. Hugo template functions like relURL are unavailable in the SCSS toCSS pipeline.
Use Hugo URL helpers (relURL, absURL) in templates. Do not hardcode root-relative paths — the site may deploy under different base paths.
- Standard editions: follow the edition maintenance guide and run
make standards-checkbefore rendering. - Preview and production builds prepare bibliography JSON in the mounted workspace; see generated content.
- Bibliography changes during a live preview: run
make publications-jsonand confirm entry counts match the.bibsource. Failed BibTeX blocks produce a warning and are omitted; compare the generated records with intended entries. - Rendering or template changes: run
make renderand checkpublic/directly, or usemake render-site-isolatedif a Hugo container is running. A successful exit code does not guarantee content is present (see module mounts gotcha above).