-
Notifications
You must be signed in to change notification settings - Fork 22
docs: basic sphinx docs #304
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
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #304 +/- ##
=======================================
Coverage 95.10% 95.10%
=======================================
Files 2 2
Lines 347 347
Branches 63 63
=======================================
Hits 330 330
Misses 10 10
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @APN-Pucky. For a quick put-together this is already a major improvement! Congrats. I did not look at everything in detail but did build the docs locally (after installing a lot of stuff in my new-ish laptop - amazing how much one installs over the years, and forgets when getting a new machine!). There are several warnings but that's not issue given that this is still Draft. I quick like the sophisticated type of docs pyhf has at https://scikit-hep.org/pyhf/ for the HEAD version and at https://pyhf.readthedocs.io/ for docs of tags. We do not need to have documentation so fancy straightaway but the idea of configuring in these 2 sites is great IMHO. I see that expanded on the examples. Cool! I would take the opportunity to list and organise examples from basics to more sophisticated (see https://pyhf.readthedocs.io/en/v0.7.6/examples.html). Let's see also what @matthewfeickert feels about this. |
I don't think they are sorted in your link, but I sorted ours by prefixing the ipynbs with a number. |
|
@eduardo-rodrigues I don't know how/where to set the HEAD output to https://scikit-hep.org/pylhe, but the github-pages CI from pyhf passes. |
|
Hi @APN-Pucky, you have to go to settings -> pages on the repo to set things up, see for example https://github.com/scikit-hep/hepstats/settings/pages. We could also do a test build, see scikit-hep/scikit-hep.github.io#421 (our case is simpler since no need for Ruby). |
I can't see that, but I enabled deploy from action now. It also knew about using the scikit-hep.org URL already.
The CI already builds the docs and uploads it here https://github.com/scikit-hep/pylhe/pull/304/files#diff-9cf2000c53760d837a449f874e53f792819108d3a4bf346336d0f7d082deae2cR75-R78 and you can download the docs html here as (now expired) artifact https://github.com/scikit-hep/pylhe/actions/runs/17130506213. |
|
Shall I set things in https://github.com/scikit-hep/pylhe/settings/pages myself? You would have see something like
I got the HTML and can have a look during the week. Did you check it's rendering things OK? So this PR is now ready for review? Great work/enhancement! |
Feel free to modify, but I think we use another method than I think not polluting the branch with docs is better.
yes.
yes! |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Eduardo Rodrigues <[email protected]>
eduardo-rodrigues
left a comment
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.
This is looking excellent!
I still just need to look at the latest artifacts, which I will do asap.
Co-authored-by: Eduardo Rodrigues <[email protected]>
Co-authored-by: Eduardo Rodrigues <[email protected]>
Co-authored-by: Eduardo Rodrigues <[email protected]>
Co-authored-by: Eduardo Rodrigues <[email protected]>
Co-authored-by: Eduardo Rodrigues <[email protected]>
Co-authored-by: Eduardo Rodrigues <[email protected]>
Co-authored-by: Eduardo Rodrigues <[email protected]>
Co-authored-by: Eduardo Rodrigues <[email protected]>
|
The artifacts look good to me! |
|
Feel free to merge when also happy. I don't think Matthew is available at present (and this PR started over a month ago). |
Ok, let's see if the page is available right away or if it needs some CI fixes. Then I'll release 0.9.3. (To include the memory fix in a 0.9 release). Thanks! |
|
It is live already here https://scikit-hep.org/pylhe/. Do we have to adjust some scikit-hep link to point to there now? e.g. https://scikit-hep.org/packages/ could have a docs button. Do we enable a page on readthedocs like https://hepstats.readthedocs.io/en/latest/? Technically, I can add it using my RTD account, but maybe it should be done by some scikit-hep RTD-account? |
|
Correct - that packages page and also https://scikit-hep.org/documentation/. This should all be done via the package YAML, I believe ... I don't think we have an org account for RTD and maintainers are using their personal ones. But let me check with @henryiii. As I suggested some time ago in our exchanges, we should use RTD for the tag versions. That's by default anyway, right? Thanks. |

Here is something I quickly copied together. To view you can just run in docs
make htmland viewxdg-open build/html/index.htmlmake htmlCloses: #30
Closes: #181