Automatically generate per-submodule API reference doc pages in template
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 62
- フォーク
- 10
- 平均マージ
- 5日 19時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
UCL-ARC/python-tooling のほかの issue
-
question
難易度 2/5 1時間未満 初心者へのやさしさ 15/100
UCL-ARC/python-tooling#657 · コメント 1 件 ·
-
task
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
UCL-ARC/python-tooling#651 · コメント 3 件 ·
-
Should we have an AI policy?対応中かも @samcunliffe が 26 日前に担当しました。 オープンquestion
UCL-ARC/python-tooling#649 · コメント 3 件 · 担当者 1 名 ·
-
enhancement investigate
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
UCL-ARC/python-tooling#623 · リアクション 1 件 ·
-
enhancement question task
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
UCL-ARC/python-tooling#620 · コメント 4 件 ·
UCL-ARC/python-tooling の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
yt-project/yt#5624 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NousResearch/hermes-agent#148376 ·
メンテナーはふだん 1 日以内に返信
-
Analysis
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SACGF/variantgrid#2615 ·
メンテナーはふだん 1 日以内に返信