-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix: Replace use of raw directive in README.rst #825
Conversation
Codecov Report
@@ Coverage Diff @@
## master #825 +/- ##
=======================================
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.
|
@kratsg you had a suggestion here about 64 bit string encoding of images for the resize? Can you elaborate? There is an example on the Stack Overflow question "Can you resize or change resolution of base64 image through manipulating the base64 code?" but I'm not sure how to be able to do this without editing the source images themselves as we can't use raw HTML or javascript on PyPI. |
this is only for the SO tag. Can you just not resize the other images and save the resized images in the repo? Then we don't need to explicitly resize them. Or we get rid of the README on github and move the README into the docs, because GitHub is clearly the problem here... |
This certainly is the easiest, but I wanted to avoid having to do this as then we have to downsize the logo, which is used in other places online from this repo and it would be nice to keep it large.
I think it is better to have a README with weird sized images than no README in the top level of the repo at all. We could move the rST README into the docs and then have a Markdown README at the top level, but then we're maintaining two versions of the same file. |
GitHub won't resize images in rST
I guess the only thing I really care about is the pyhf logo. To me, the only images in the GitHub render of the README that are offensive are the CLs plots. I've resized the ones that are the worst offenders to have widths of 500 pixels (I didn't bother with the one that is 514 pixels wide) using GIMP. If we can live with a slightly gaudily large pyhf logo and big Stack Overflow logo in the README then I think this fixes things. |
provide an svg version of the logo and a png version that's "logo-small.png" or similar -- this is probably better. |
Description
Resolves #824
In PR #819 the use of the
raw
directive in rST was used to render images correctly. However, this is not allowed on PyPI and breaks the publication checks.ReadTheDocs build: https://pyhf.readthedocs.io/en/fix-fix-raw-html-in-readme.rst/
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: