pyinat / pyinaturalist

Python client for iNaturalist
https://pyinaturalist.readthedocs.io
MIT License
130 stars 17 forks source link

Put long param sections in dropdowns #527

Open JWCook opened 9 months ago

JWCook commented 9 months ago

In docs for functions with tons of request parameters (mostly the observation endpoints), these param lists take up most of the space in the doc page. Example: https://pyinaturalist.readthedocs.io/en/stable/modules/pyinaturalist.v1.observations.html

It would be nice to put these under dropdown boxes (collapsed by default). Since these param lists are generated by sphinx-autodoc and sphinx-autodoc-typehints, though, I'm not quite sure how to do that.