-
Notifications
You must be signed in to change notification settings - Fork 84
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
docs: Use rST instead of Markdown for README and ROADMAP #819
Conversation
Codecov Report
@@ Coverage Diff @@
## master #819 +/- ##
=======================================
Coverage 95.92% 95.92%
=======================================
Files 54 54
Lines 3016 3016
Branches 424 424
=======================================
Hits 2893 2893
Misses 78 78
Partials 45 45
Continue to review full report at Codecov.
|
Seems we have another docs issue
|
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.
Overall looks really nice when rendered out. Just noticed 1 possible typo to fix and then gave some suggestions on other changes.
Co-Authored-By: Matthew Feickert <[email protected]>
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.
Looks great to me. 👍 Thanks for doing this migration!
The CI for the docs failed for some reason, so I restarted them. |
Looks like there is some problem with GitHub Actions at the moment:
|
Before this goes in, it might be worth checking how Black is able to use Makrdown but doesn't use |
@lukasheinrich Given @kratsg's thoughts here and my inability to find a solution over the last 2 days what are your thoughts on this PR? |
Just a suggestion if we switch to rST, I believe it would be nice if we could possibly have checkboxes just as we had in case of markdown (ref. 3rd last comment on this issue at Stack Overflow)...I have tested for README.rst and unsure about how it renders on Github but the docs get rendered out as below with some minor inconsistencies of space gaps (as displayed in the Todo img.) that could be very well be customized or ignored if that's not an issue.
|
@kanishk16 I think that looks really great! Nice find. @kratsg @lukasheinrich While I don't think any of us are 100% happy with this solution at the moment, it does work and pass the tests, so I think that we should just adopt rST for now and move on while checking to see if there might be ways to correct the image sizes on GitHub or bring back Markdown in the future. Any objections? |
Fixes: ./tests/test_scripts.py:50:15 '...'.format(...) has unused arguments at position(s): 0 ./tests/test_scripts.py:161:15 '...'.format(...) has unused arguments at position(s): 1 ./tests/test_scripts.py:166:15 '...'.format(...) has unused arguments at position(s): 2
This is also what we did for Markdown
It looks like using |
The HTML doesn't render on GitHub Using: - 🗹 https://www.htmlsymbols.xyz/unicode/U+1F5F9 - ☐ https://www.htmlsymbols.xyz/unicode/U+2610
This reverts commit 7511b71.
Actually, if we're fine seeing lists like this on GitHub: Implemented variations:
then we can keep the HTML check mark boxes, and they'll just render on the docs and PyPI. Sound good? |
c401d10
to
286a9f9
Compare
6b409b6
to
abd5f6a
Compare
abd5f6a
to
a6a0e4c
Compare
I'll also post this on my GitHub Community Forum Issue, but the issue with the GitHub disk space regression was only for the Linux runners, and if additional space is manually cleaned up on them then things run fine again. If I remove
and if I only run
which appears to be enough space for the install to run fine. This is an annoying hack and GitHub needs to fix this disk space bug, but it works for the time being. |
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.
Shouldn't we be adding disabled="true"
to README.rst
as well or am I just missing something?
We should. I missed this earlier. |
* Remove use of raw directive in README.rst as not allowed on PyPI - Amends PR #819 * Resize image files for Brazil Band plots in README to be 500 px wide - c.f. github/markup#295 * Add twine check of dist to publishing CI tests * Add smaller version of pyhf logo for documentation
Description
Resolves #818. We drop the
m2r
dependency. This fixes the sphinx builds.Docs build at: https://pyhf.readthedocs.io/en/docs-newsphinx/
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: