Modernize Sphinx docs and fix docstring RST bugs - #87
Merged
Merged
Conversation
- Auto-generate module .rst stubs with sphinxcontrib.apidoc instead of hand-maintaining them, fixing dead references (ncempy.io.read, ncempy.algo.align/moments/rebin) and adding coverage for modules that had drifted out of the docs (dectris, eels, multicorr, viz.widgets). - Add sphinx.ext.intersphinx mappings (Python, NumPy, SciPy, h5py, Matplotlib) so docstring type references link out. - Add .readthedocs.yaml and docs/requirements.txt for an explicit, modern RTD build config. - Add a Dectris Arina usage example to docs/index.rst. - Fix RST syntax bugs in docstrings (eels.pre_post_fit, gaussND.gauss3D_FIT, multicorr_funcs.imageShifter, smv.smvWriter, line_profile.line_profile) and set napoleon_use_ivar to stop __slots__-based classes like fileDM from being documented twice. Verified with `sphinx-build -W`: warnings dropped from 30 to 7, all remaining ones pre-existing (missing edstomo extra, deprecated theme call, empty tools toctree entry). Co-Authored-By: Claude <noreply@anthropic.com>
Add a short description of python_titan as a set of open source automation packages for Thermo Fisher transmission electron microscopes, in both README.rst and docs/index.rst. Co-Authored-By: Claude <noreply@anthropic.com>
ercius
added a commit
that referenced
this pull request
Jul 13, 2026
Follow-up to the docs modernization merged in #87, which only included the first commit of the update-docs branch. This carries over the rest: - Link python_titan properly in the Components toctree instead of as plain bold text (it needs a real docs/python_titan.rst target). - Add docs/tools.rst and docs/python_titan.rst: docs/tools.rst had been deleted in a much older commit but the toctree entry pointing to it was never removed, so it silently failed to render on RTD. - Reword the ncempy.read()/fileDM examples in docs/index.rst to use `import ncempy` directly instead of `import ncempy.io as nio`. Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verified with
sphinx-build -W: warnings dropped from 30 to 7, all remaining ones pre-existing (missing edstomo extra, deprecated theme call, empty tools toctree entry).