sphinx ext: include autosummary templates and extensions from cookiecutter-scverse#60
Conversation
This moves the autosummary templates and custom Sphinx extensions from cookiecutter-scverse into our own Sphinx extension. See also the discussion in scverse/cookiecutter-scverse#483
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #60 +/- ##
==========================================
- Coverage 93.28% 93.26% -0.02%
==========================================
Files 11 11
Lines 536 579 +43
==========================================
+ Hits 500 540 +40
- Misses 36 39 +3
🚀 New features to boost your workflow:
|
|
I don't see any issues from the technical side. |
|
I've added some docs. I would love to get rid of our own |
|
That's the plan, isn't it? |
|
It is, but what do you mean by this then?
|
|
So scverse_misc currently has two sets of templates: One in |
|
IIUC, this bug only affects a minority of repos that want to document "special" functions with sphinx autodocs. |
| yield line | ||
|
|
||
|
|
||
| def _parse_returns_section(self: NumpyDocstring, section: str) -> list[str]: |
There was a problem hiding this comment.
we should document that we do this (and what “this” is).
There was a problem hiding this comment.
Done. Not sure if that one sentence is enough, but the cookiecutter thing wasn't documented at all, so better than it used to be, I guess?
This moves the autosummary templates and custom Sphinx extensions from cookiecutter-scverse into our own Sphinx extension. See also the discussion in scverse/cookiecutter-scverse#483.