Skip to content

Add mkdocs-based full API docs, linked to main JB docs - #141

Merged
C-Achard merged 8 commits into
mainfrom
cy/api-docs
Nov 26, 2026
Merged

C-Achard merged 8 commits into
mainfrom
cy/api-docs

Conversation

@C-Achard

Copy link
Copy Markdown
Collaborator

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.

@C-Achard C-Achard added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 25, 2026
@C-Achard C-Achard self-assigned this Nov 25, 2026
@C-Achard
C-Achard requested a balanced review from Copilot November 25, 2026 10:54

Copilot AI 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.

🟡 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

Comment thread api-docs/docs/high-level/inference.md Resolved
Comment thread api-docs/docs/high-level/training.md Resolved
Comment thread api-docs/docs/high-level/inference.md Resolved
@C-Achard
C-Achard changed the base branch from main to cy/review-docs November 25, 2026 17:11
@C-Achard
C-Achard added this pull request to stack #146 November 25, 2026 17:11
@C-Achard
C-Achard marked this pull request as ready for review November 25, 2026 17:12
Base automatically changed from cy/review-docs to main November 25, 2026 17:13
@C-Achard
C-Achard merged commit f3d63f7 into main Nov 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants