Automatically generate per-submodule API reference doc pages in template
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- python
- Domaine
- documentation
Piste de recherche
Start with the template's {{cookiecutter.project_slug}}/mkdocs.yml and docs/api.md, then read the linked mkdocstrings recipe for automatic code reference pages. Check how mkdocs_gen_files and mkdocs-literate-nav fit the template's existing configuration. Done means generated docs provide per-submodule API pages and navigation without manually maintained stubs.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Is Your Feature Request Related to a Problem? Please Describe
Currently the mkdocstrings configuration for the MkDocs docs in the template
is set up to show submodules on the same page as the parent package, with a single 'API reference' page included in the docs
While this works reasonably for small packages, once packages start getting larger it gets cumbersome to have all the API documentation on a single page.
In Sphinx the analagous autodoc plug-in instead defaults to creating a nested directory structure in the built docs reflecting the package structure with one page per submodule and appropriate indices to link all the nav together.
This can be achieved manually in our current set up by setting show_submodules to False, creating a Markdown source page for each submodule with the appropriate content, and adding entries to the nav section for each of the module pages but this is obviously very error prone / likely to end up getting out of sync.
Describe the Solution You'd Like
The mkdocstrings docs has instructions for setting up a recipe to automate building the appropriate module stub pages using mkdocs_gen_files plug-in and generating the navigation structure using mkdocs-literate-nav - ideally we should implement this in the template.
Describe Alternatives You've Considered
No response
Additional Context
No response
- Langage dominant
- Python
- Étoiles
- 62
- Forks
- 10
- Merge moyen
- 14 j 16 h
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de UCL-ARC/python-tooling
-
task
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
UCL-ARC/python-tooling#651 · 3 commentaires ·
-
Should we have an AI policy?Peut-être pris @samcunliffe l’a pris il y a 24 jours. Ouvertequestion
UCL-ARC/python-tooling#649 · 3 commentaires · 1 personne assignée ·
-
enhancement investigate
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
UCL-ARC/python-tooling#623 · 1 réaction ·
-
enhancement question task
Difficulté 3/5 1-2 jours Accessibilité débutants 38/100
UCL-ARC/python-tooling#620 · 4 commentaires ·
-
Switch from MkDocs to ZensicalOuvertetask
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
UCL-ARC/python-tooling#619 ·
Toutes les issues de UCL-ARC/python-tooling
Issues similaires
-
Keybind quest outdatedOuverteStatus: Triage Type: Quest
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
GTNewHorizons/GT-New-Horizons-Modpack#27490 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
retentioneering/retentioneering-tools#231 ·
Les mainteneurs répondent en général sous 1 jour
-
backend bug documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
geolens-io/geolens#3568 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
mprov-ng/mprov_control_center#450 ·
Les mainteneurs répondent en général sous 1 jour