Skip to content

docs(seo): host the full PytorchWildlife API reference on the framework site#18

Open
rain-Brian wants to merge 2 commits into
seo/pw-contentfrom
seo/pw-api-docs
Open

docs(seo): host the full PytorchWildlife API reference on the framework site#18
rain-Brian wants to merge 2 commits into
seo/pw-contentfrom
seo/pw-api-docs

Conversation

@rain-Brian
Copy link
Copy Markdown
Collaborator

What

Migrates the auto-generated API reference (mkdocstrings) to PyTorch-Wildlife's own docs site, so the framework's complete code API lives at the framework home rather than on the Biodiversity hub. This is the prerequisite for cleanly removing the leftover package copy from the hub without losing that content from the cluster.

Changes

  • Enable the mkdocstrings python handler with paths: [src] (this repo uses a src/ layout) + google docstrings.
  • Add the 32-page Reference - Code API nav tree (base module: data / models / utils; plus model fine-tuning), mirroring the structure the hub previously carried.

Verification

  • mkdocs build renders the reference from src/PytorchWildlife via griffe static analysis (no runtime import / torch needed); the datasets page shows real symbols (ClassificationImageFolder, DetectionImageFolder).
  • Sitemap grew 6 → 40 URLs.
  • Em-dash gate clean.

Stacking

Stacked on the content PR #16 (base seo/pw-content; retargets to main when #16 merges). Pairs with the hub removal draft, which depends on this landing first.

Part of resolving the hub/framework duplication (ADO Epic 506340). No reviewer set per current instruction.

…k docs site

Migrate the auto-generated API reference (mkdocstrings) to the framework's own
documentation site, so PyTorch-Wildlife hosts the complete code API rather than
the Biodiversity hub. Pairs the hand-written API Overview with a per-module
reference.

- Enable the mkdocstrings python handler with paths: [src] (this repo uses a
  src/ layout) and google docstrings.
- Add the 32-page Reference - Code API nav tree (base module: data, models,
  utils; plus model fine-tuning), mirroring the structure the hub previously
  carried.

Verified: mkdocs build renders the reference from src/PytorchWildlife (static
analysis); sitemap grew from 6 to 40 URLs.
@rain-Brian rain-Brian requested a review from zhmiao June 3, 2026 22:22
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