-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
jsonschema deserves a ✨fancy✨ readme #983
Conversation
Hooray! Thank you! Fancyyyyy.
This is mostly to do with the |
The h3 stuff is just relative, but this is the priority (EDIT: it is not): ==
h1
==
h2
==
h3
--
h4
~~
Since you don't have I'm a bit surprised by both double-= and single-= becoming H1 in index.rst, I guess it's trying to be smart there? Which is why I use in my docs double- P.S. I hate this so much. |
Hilariously, here's the resulting readme in a gist: https://gist.github.com/hynek/378cc636308aa9fdd9eaaea550d31e12 for some reason it made double- |
Those are different, double- The priority is based on what heading styles it sees first EDIT: Oops, hit send by accident, no matter -- but yeah basically |
ugh yeah you're right…it's about order which is insane. just to re-iterate: the problem is that the changelog uses the same section marker as the readme. pulling it up to There's almost nothing in the index.rst: we'd just have to switch the marker of Contents and Indices, or am I missing something again? |
There's a bunch of ways to do it, I think the easiest one is to leave |
TBH, I by fancy it means potential (ab)use of emoji, like in PR title, I would better prefer it without it. I hate seeing emoji inside commit messages, makes the git log looks my Spam folder from gmail. Emoji are fine, for personal messages but not for changelogs. They distract user from the real content. |
Done! I've updated https://gist.github.com/hynek/378cc636308aa9fdd9eaaea550d31e12 for preview too. |
Codecov Report
@@ Coverage Diff @@
## main #983 +/- ##
==========================================
+ Coverage 98.18% 98.19% +0.01%
==========================================
Files 20 20
Lines 3307 3326 +19
Branches 529 531 +2
==========================================
+ Hits 3247 3266 +19
Misses 46 46
Partials 14 14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Hooray! Thanks :D, very fancy. |
The `jsonschema` module uses `hatch-fancy-pypi-readme` for build since version 4.11.0 (python-jsonschema/jsonschema#983); add that module to the `[tool.poetry.dev-dependencies]` section in `pyproject.toml`, so that it would be available for the upcoming poetry2nix override.
So this is a simple starting point.
LMK what you think. I for one would probably cut "Running the Test Suite", "Benchmarks", and "Community" from PyPI.
You can test the output by checking this branch out and running
pipx run hatch-fancy-pypi-readme
.Small aside: One thing I've notices is that your heading chars are a bit off. Your Readme uses over-and-under
=
but the sections use-
. Then yourindex.rst
uses-
for Contents, but=
for Indices and tables.I think you should switch Contents and everything that is
-
in the README to just-under=
and am happy to make it part of this PR if you want to.