doxygen docs/Doxyfile from the repo root writes a stray doxygen/ folder
Symptom#
After running the op-parity recipe from the repo root, an untracked doxygen/xml/ folder appears at the top of the repository, and scripts/check_op_parity_doxygen.py docs/doxygen/xml ... reads a folder that this doxygen run did not write.
Cause#
docs/Doxyfile sets OUTPUT_DIRECTORY = doxygen, which is relative to the working directory. docs/source/conf.py runs doxygen with cwd set to docs/, so the expected output is docs/doxygen/xml (gitignored as docs/doxygen/). The command CLAUDE.md gave before 2026-09-27 (doxygen docs/Doxyfile from the root) writes ./doxygen/ instead.
Fix#
Never run doxygen by hand. Build the docs with Sphinx, which runs doxygen from docs/ and writes docs/doxygen/xml, then run scripts/check_op_parity_doxygen.py docs/doxygen/xml build/build-tests/lib/libdftracer_utils_dataframe.dylib. The user's rule (2026-09-27): everything is driven by Sphinx inside docs/; AGENTS.md (CLAUDE.md) now says so. Delete a stray root doxygen/ folder if one was made.
A Sphinx run that exits 1 with no warnings may mean the environment has no Sphinx at all. Then doxygen did not run, and the parity check reads old XML left in docs/doxygen/xml, so its pass proves nothing. Read the Sphinx log before trusting the check, and build the docs with uv run on the docs requirements.
Evidence#
- 2026-09-27, duql stage 12a1:
doxygen docs/Doxyfilefrom the root createddoxygen/xml(untracked, 15:34); the parity check passed ondocs/doxygen/xmlfrom the Sphinx run. - 2026-09-29, stage 13g: "sphinx exited with code 1 and no warnings"; the log showed "The venv has no Sphinx, so that parity run read old Doxygen XML and proves nothing." Rebuilt with
uv runon the docs requirements, the parity check passed (exit 0).
Also found by searching
- git status shows untracked doxygen/xml/ at the repo root after running doxygen docs/Doxyfile
- check_op_parity_doxygen.py reads stale docs/doxygen/xml, my doxygen run wrote somewhere else
- how do I run doxygen so its XML lands in docs/doxygen/xml for the op parity check
- Doxyfile OUTPUT_DIRECTORY relative to working directory, run from docs folder not repo root
- untracked doxygen/xml folder appeared at repo root after running doxygen docs/Doxyfile
- check_op_parity_doxygen.py cannot find docs/doxygen/xml or reads stale output
- where does doxygen write output, OUTPUT_DIRECTORY relative to cwd in Doxyfile
- how do I run doxygen for op parity from the correct directory in dftracer-utils