Skip to content

docs: consolidate tutorials and convert guides to notebooks#104

Merged
chaoming0625 merged 2 commits into
mainfrom
doc
May 25, 2026
Merged

docs: consolidate tutorials and convert guides to notebooks#104
chaoming0625 merged 2 commits into
mainfrom
doc

Conversation

@chaoming0625

Copy link
Copy Markdown
Collaborator

Summary

  • Merge the parallel docs/single_compartment/ and docs/multi_compartment/ trees into one progressive docs/tutorials/ path; move examples to top-level docs/examples/.
  • Merge and translate the previously-duplicated channel/ion tutorials (the multi-compartment versions were written in Chinese) into one English notebook each.
  • Convert the 19 code-bearing Markdown guides (concepts, getting_started, file_formats, developer, troubleshooting) into executable notebooks; prose-only pages stay Markdown. Toctrees and cross-references updated.
  • Fix all Sphinx build warnings — the build is now clean (0 warnings):
    • napoleon_use_ivar so NumPy-doc Attributes no longer duplicate autodoc members.
    • An autodoc-process-docstring hook that restores the blank line sphinx_autodoc_typehints drops before a trailing section (Field list ends without a blank line).
    • Move footnote citations out of one-line summaries (RK steps, HCN_HM1992) so autosummary resolves footnote targets.
    • Tidy Channel/Ion/IonInfo docstrings and a morphology forward reference.

Test plan

  • sphinx-build -b html docs docs/_build/html — build succeeds with 0 warnings.
  • All 82 notebooks parse via nbformat.read(..., 4).
  • No remaining CJK characters in docs/tutorials/*.ipynb.
  • No stale single_compartment/index / multi_compartment/index references.

…es to notebooks

Merge the parallel docs/single_compartment and docs/multi_compartment
trees into a single progressive docs/tutorials/ path, moving examples to
docs/examples/. Merge and translate the channel/ion tutorials (previously
duplicated, with the multi-compartment versions written in Chinese) into
one English notebook each. Convert the 19 code-bearing Markdown guides
(concepts, getting_started, file_formats, developer, troubleshooting) to
executable notebooks; prose-only pages stay Markdown. Update toctrees and
cross-references accordingly.

Fix all Sphinx build warnings (clean build, 0 warnings):
- conf.py: napoleon_use_ivar to stop Attributes duplicating autodoc members;
  autodoc-process-docstring hook restoring the blank line that
  sphinx_autodoc_typehints drops before a trailing section.
- Move footnote citations out of one-line summaries (RK steps, HCN_HM1992)
  so autosummary no longer fails to resolve the footnote target.
- Tidy Channel/Ion/IonInfo docstrings and a morphology forward reference.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @chaoming0625, your pull request is larger than the review limit of 150000 diff characters

@chaoming0625 chaoming0625 merged commit 2e07356 into main May 25, 2026
7 checks passed
@chaoming0625 chaoming0625 deleted the doc branch May 25, 2026 15:01
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.

1 participant