Skip to content

docs: fix issues in the prose documentation and the docs build - #88

Merged
paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:docs-prose-fixes
Nov 23, 2026
Merged

paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:docs-prose-fixes

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

First of several documentation PRs from a review of the dcnum docs (prose pages, README, docs build). Docstring fixes follow in separate PRs.

Changes

  • README: the logo pointed to docs/logo/dcnum.png, which has never existed in the repository. The image link returns 404, so the README showed a broken image on GitHub and PyPI. I removed the image and the title is now plain text. If you'd rather add a logo file, I can restore the reference instead.
  • Pipeline page:
    • The note on background computation said the background is "computed for every pipeline run". That contradicted the section above it, which says the computation is skipped when the input already contains background data with the same settings. The note now explains when the computation is skipped and when background_code="copy" helps.
    • The gating paragraph now says that masks with size_thresh_mask pixels or fewer are discarded and that 0 keeps all masks (fix: honor an explicit size_thresh_mask=0 in Gate #86). With online_gates=True, the default is taken from "bin area min" in the metadata.
  • Design page:
    • The file name uses code markup; single backticks rendered it in italics.
    • It mentions that with debug=True the writer is a QueueWriterThread.
  • Changelog extension (docs/extensions/github_changelog.py):
    • The path given to include_changelog is now resolved relative to the document, using env.relfn2path, not the current working directory. Before, sphinx-build -b html docs <out> from the repository root failed with FileNotFoundError: '../CHANGELOG'; it only worked from inside docs/.
    • The docstring described an outdated RI-imaging/{PROJECT} link.
  • Ambiguous cross-reference: _transfer_raw_basin_features used HDF5Writer in its docstring, which matches both dcnum.write.HDF5Writer and dcnum.write.writer.HDF5Writer. This was the only warning in the docs build.
  • CHANGELOG typos in old entries: "ouptut", "requrie", "instroduce".

Checks

  • sphinx-build -b html docs … from the repository root succeeds with no warnings, and the changelog page still links the issues to DC-analysis/dcnum.
  • README.rst renders without docutils warnings.
  • flake8 is clean.

🤖 Generated with Claude Code

- README: remove the logo, which pointed to a non-existent file
  (docs/logo/dcnum.png)
- pipeline: the note on background computation contradicted the
  section on skipping it; describe `size_thresh_mask` (including 0
  and the default with online gates) correctly
- design: use code markup for the file name, mention the writer
  thread in debug mode
- changelog extension: resolve the path relative to the document, so
  the docs can also be built from the repository root; fix the
  outdated docstring
- fix an ambiguous cross-reference to `HDF5Writer`
- fix typos in old changelog entries

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulmueller
paulmueller merged commit 6626af0 into DC-analysis:main Nov 23, 2026
5 of 6 checks passed
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.22%. Comparing base (1e74ba5) to head (e978100).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
- Coverage   88.26%   88.22%   -0.05%     
==========================================
  Files          63       63              
  Lines        4543     4543              
==========================================
- Hits         4010     4008       -2     
- Misses        533      535       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants