-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Doc improvements #1184
Doc improvements #1184
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1184 +/- ##
=======================================
Coverage 93.12% 93.12%
=======================================
Files 94 94
Lines 9351 9351
=======================================
Hits 8708 8708
Misses 643 643
Continue to review full report at Codecov.
|
also added a section on hyperlinks in docs on the developer guide
This looks really great, thanks @OriolAbril ! Disclaimer: I'm close to a noob on doc generation, but this seems like a good time to understand how this works on ArviZ -- plus, I'd like to do something similar on PyMC3, where the stats docs would directly redirect to ArviZ to avoid inconsistencies. |
Great! Thanks for the help! I can try to help with PyMC3 docs too. Do you want to change anything else in the configuration? Otherwise we can merge and divide adding the references into several PRs |
TBH I don't really now what's the best option yet 😅
Maybe the most efficient would be to have a video call and talk about it?
Le ven. 15 mai 2020 à 21:55, Oriol Abril <[email protected]> a
écrit :
… Great! Thanks for the help! I can try to help with PyMC3 docs too.
Do you want to change anything else in the configuration? Otherwise we can
merge and divide adding the references into several PRs
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1184 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHIJMTHGLO2QU7I62YFQSZTRRWM4BANCNFSM4NAP5O6A>
.
|
I vote merging. |
Alright its been a day. Merging this. We can figure out cross docs later! Thanks @OriolAbril |
Description
This PR adds several new features to docs. Some of them are a not very well documented so I'll try to add this to the developer guide so we can make the most of these improvements.
Using see also
The see also section can also be used and links are generated automatically by sphinx. See
compare
for one example.We have to modify the css file to change the color, otherwise it is hardly readable.Any help would be greatly appreciated.Referencing methods in other libraries
For now, xarray and pymc3 are configured to make it easy to reference their docs. This is possible thanks to intersphinx. Therefore, rst code such as:
Will directly link to the corresponding docs, see
from_pymc3
andInferenceData.sel
. The initial part is quite tricky, depending on what is referenced it has to be one or another key. The accepted keys can be found here, however in some cases it can be hard to guess. In such cases, the sphobjinv package can come in handy. It can search the documentation for us and return the interesting objects to tag:The codes still have to be updated from
:py:function:
to:py:func:
to follow match the accepted keys, see link above.Referencing ArviZ functions
Same thing as above can be used:
:py:func:
and similar keywords.Other
Several formatting fixes to reduce warnings and make sure all plots in docstring are correctly generated and updating from
m2r
torecommonmark
to convert markdown to rst.Now everything should be sphinx3 compatible.Everything is now sphinx3 compatible.Checklist