Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sphinx-autodoc-typehints so that types don't have to be duplicated #161

Closed
Tracked by #159
abkfenris opened this issue Mar 9, 2023 · 0 comments
Closed
Tracked by #159
Labels
documentation Improvements or additions to documentation

Comments

@abkfenris
Copy link
Member

abkfenris commented Mar 9, 2023

Sphinx-autodoc-typehints will pull type hints in directly so that they don't have to be re-specified in docstrings. This prevents a way that types may fall out of sync, and reduces duplication.

It does need to be added to extensions after napoleon for them both to play nicely with each other.

@abkfenris abkfenris mentioned this issue Mar 9, 2023
9 tasks
@abkfenris abkfenris changed the title Use sphinx-autodoc-typehints (working with napoleon) so that types don't have to be duplicated Use sphinx-autodoc-typehints so that types don't have to be duplicated Mar 9, 2023
@abkfenris abkfenris added the documentation Improvements or additions to documentation label Mar 9, 2023
abkfenris added a commit to abkfenris/xpublish that referenced this issue Mar 11, 2023
abkfenris added a commit that referenced this issue Mar 21, 2023
* Add methods to API docs and use typehints

Closes #160 #161

* Add make live command for using with sphinx-autobuild

* Remove duplicate typing from register_plugin
abkfenris added a commit to abkfenris/xpublish that referenced this issue Apr 4, 2023
abkfenris added a commit that referenced this issue May 11, 2023
* Add methods to API docs and use typehints

Closes #160 #161

* Use the Pydata theme for docs

Closes #164

* Add methods to API docs and use typehints

Closes #160 #161

* Use the Pydata theme for docs

Closes #164

* Hide the top menu navigation from the index page

* Docs revamp

Start of a big revamp of the docs.
- Uses Pydata theme
- Enables MyST markdown and converts a lot of the docs to it (rst heading levels and git conflict formatting conflict, which was a fun discovery)
- Re-arranges things along the Diátaxis framework lines, or at least how they are being used in the PyData space
- Adds the vision or 'Why Xpublish' page
- Breaks the tutorial into sections and scaffolds sections for use of plugins

Closes #163 #165 #162 #166

* Update xarray-contrib to xpublish-community

* Pre-commit format markdown and docs code snippets

* Dataset router plugin tutorial and other doc tweaks

* Use literalinclude rather than duplicating doc code

* Remove some under-construction alerts
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
Projects
None yet
Development

No branches or pull requests

1 participant