Repository navigation
Add mkdocs-based full API docs, linked to main JB docs - #141
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The examples can fail because inference passes a list where a scalar model size is required, and training does not create the output directory before writing its first checkpoint.
3 open issues
What changed in this PR
Moves the API reference from Sphinx to a dedicated MkDocs site while keeping user guides in Jupyter Book. The new reference also documents the Python entry points used by the Colab notebooks.
Changes:
- Adds automated API generation, high-level inference and training pages, and custom styling.
- Replaces Sphinx API generation with links from the existing user documentation.
- Updates documentation dependencies and CI to build both sites together.
| File | Description |
|---|---|
pyproject.toml |
Adds API documentation dependencies. |
docs/source/guides/utils_module_guide.rst |
Links utility references to MkDocs. |
docs/source/guides/training_module_guide.rst |
Links training references to MkDocs. |
docs/source/guides/review_module_guide.rst |
Links review references to MkDocs. |
docs/source/guides/metrics_module_guide.rst |
Links metrics references to MkDocs. |
docs/source/guides/inference_module_guide.rst |
Links inference references to MkDocs. |
docs/source/guides/custom_model_template.rst |
Links model framework documentation to MkDocs. |
docs/source/guides/cropping_module_guide.rst |
Links cropping references to MkDocs. |
docs/source/code/api.rst |
Removes the Sphinx API landing page. |
docs/_toc.yml |
Adds the external API reference navigation entry. |
docs/_templates/custom-module-template.rst |
Removes the autosummary module template. |
docs/_templates/custom-class-template.rst |
Removes the autosummary class template. |
docs/_config.yml |
Removes Sphinx API-generation configuration. |
api-docs/mkdocs.yml |
Configures API generation, navigation, and theme. |
api-docs/docs/index.md |
Adds the API reference landing page. |
api-docs/docs/high-level/training.md |
Documents training entry points and configuration. |
api-docs/docs/high-level/inference.md |
Documents inference and post-processing entry points. |
api-docs/docs/high-level/index.md |
Introduces the high-level Python API. |
api-docs/docs/assets/stylesheets/cellseg3d.css |
Adds project colors and logo styling. |
.gitignore |
Allows API image assets and removes obsolete exclusions. |
.github/workflows/build_docs.yml |
Builds MkDocs alongside Jupyter Book for deployment. |
Review effort: Balanced
C-Achard
force-pushed
the
cy/api-docs
branch
from
November 25, 2026 17:11
9dda576 to
0f68b71
Compare
C-Achard
marked this pull request as ready for review
November 25, 2026 17:12
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
C-Achard
force-pushed
the
cy/api-docs
branch
from
November 25, 2026 17:13
0f68b71 to
b1dde01
Compare
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.


Scope
API reference only. The user guides stay in the Jupyter Book; Sphinx autodoc/autosummary is removed from it. No versioning or search indexing.
Motivation
The Sphinx autosummary pages only mirrored the module tree, and the entry points used by the Colab notebooks (
dev_scripts.remote_inference,dev_scripts.colab_training) were not documented.This automates the API documentation fully while keeping main user docs as-is.