-
Notifications
You must be signed in to change notification settings - Fork 59
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
Contributing and overall doc comments #1308
Conversation
It looks as though Will check for a workaround or a way of squelching the warnings. |
Update@Ouranosinc/xclim-core I've staged a page for us to explain how xclim is different from other projects (see final comment in #1305) with some ipsum dolor text and links to relevant projects. I can get this started, but would appreciate a hand. It also made sense to concentrate most of the usage targets under the All these changes were causing hyperlink issues, so to resolve them I decided on the following:
This makes it so that we can finally have valid targets that we can share with users that no longer shows the Instead of: We now have: IMO, this is a major improvement, but it's a bit of a departure, so I'd like to hear peoples' thoughts on this. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My 2 cents:
I really like having all the indices listed in the menu.
I also like that the API is a single page even though it's a bit "slow" to load.
A few suggestions (not specific to the PR but to xclim's doc) :
- I find "ALL MODULES" > xclim and "USER API" > API sections redundant.
- In the long run it could be interesting to divide the documentations into categories to group doc pages that belongs together. It could be categories such as the ones proposed in diataxis. It's really tedious to do on existing doc though.
- I find it unusual to use the word "History" for the Change logs. I would prefer "Changelog" (like dask) or "Release Notes" like (like pandas or numpy).
- I would suggest putting a sentence + link to
Indicator
on theIndices
page, to encourage user to use the Indicator class instead. As per my understanding, you really want indices to be a technical topic in xclim and Indicators to be the user frontend right ?
Overall: great changes thanks!
Link to PR's readthedoc build I used for review: https://xclim--1308.org.readthedocs.build/en/1308/readme.html .
Co-authored-by: Abel Aoun <[email protected]>
(Woops, hit the wrong button!)
Agreed. I think having the Indicators specifically under API gives users the impression that this is how you use the library.
I think the idea of separating these two come from that design approach. Other scientific libraries use this layout philosophy (like numpy and dask. We're halfway there, IMO. (I've made this into an issue to be discussed at out next monthly planning).
Agreed. Changed.
Done.
Thanks! |
### What kind of change does this PR introduce? * Adds xclim's zenodo to the ouranos community page ### Does this PR introduce a breaking change? No. ### Other information: Documentation build failures are resolved in #1308
I've staged the I'll be adding one or two comments in the section this afternoon, but aside from that, I think this PR is in good shape and will address several points raised by the reviewer. If there are no other comments, I'll be merging this by the end of the day. |
Co-authored-by: David Huard <[email protected]>
Pull Request Checklist:
number
) and pull request (:pull:number
) has been addedWhat kind of change does this PR introduce?
sphinx-autodoc-typehints
is now used to simplify call signatures generated in documentation.HISTORY.rst
has been renamedCHANGES.rst
, to followdask
-like conventions.indices
andindicators
now point to their entries underAPI
orIndices
.xclim
and a section briefly detailing similar and related projects.Mapping
abstract base class types in call signatures (dict
variables were always expected).Does this PR introduce a breaking change?
Yes. The docs have been completely reorganized.
Other information: