-
Notifications
You must be signed in to change notification settings - Fork 109
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
Sphinx documentation #155
Sphinx documentation #155
Conversation
Wow that's amazing! Is there any chance you could add a github workflow to build the doc automatically whenever something is pushed on main? There should be a recipe already in mcx |
I see you are using I eventually want to get rid of |
I think it is possible given https://myst-nb.readthedocs.io/en/latest/examples/custom-formats.html#using-jupytext However in jupytext format there is no output so they will need to be run every time the documentation is generated, which I guess is not very convenient if you need to run them on beefy machines or if the execution time is large. Is it the case ? There are some options to do caching of this stuff, but I guess it would be hard to share the cache across machines : https://myst-nb.readthedocs.io/en/latest/use/execute.html#triggering-notebook-execution It seems that JAX is doing this, but it adds a layer of complexity to the process https://jax.readthedocs.io/en/latest/developer.html#update-documentation |
It does add a layer of complexity, but having Let me know when I can review the PR and/or if I can help you with anything! |
@horaceg I finally had time to look at your PR in details. This looks great for a first pass! Since I am a bit more familiar woth BlackJAX I'll take it from there for the content of the API reference and the front page. I'll have a look at the outstanding issues as well. Thank you for your help! |
Codecov Report
@@ Coverage Diff @@
## main #155 +/- ##
=======================================
Coverage 98.56% 98.56%
=======================================
Files 25 25
Lines 977 977
=======================================
Hits 963 963
Misses 14 14
Continue to review full report at Codecov.
|
098d344
to
094748a
Compare
It is not perfect but it is already a net improvement to the library, so merging. Thank you again for your help. |
Just a quick note to say that I've played with the documentation recently, and |
Hello,
I don't know much about Blackjax but thought I could help setup a sphinx doc seing #154
Build with e.g.
sphinx-build -b html docs docs/_build/html
and thenopen docs/_build/html/index.html
Current problems:
docs/api.rst
).Theuse_with_pymc3
notebook has incorrect header sections, so it messes with the notebook stuffBlackjax
, so it is not very explicit