-
Notifications
You must be signed in to change notification settings - Fork 25
Tweak the code blocks #69
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
Tweak the code blocks #69
Conversation
00fc883
to
e22391c
Compare
nice simplification 👍 |
e22391c
to
65c7ead
Compare
I've rebased and fixed the tests ... but some needed changes in fixtures look wrong 😐 |
are you talking about glob toc tree order? (the remaining failing test). |
@nikophil I don't understand well your comment, but:
|
If I can do something to make this mergeable, please tell me. Thanks! |
sorry not to be clear. about the failing test in the PROn my side, I DO have the errors on my local machine (php 7.4 / up to date with dependencies) In the PR, one test is failing. It is related to both of these toc trees: .. toctree::
:glob:
*
.. toctree::
:glob:
file
* Thus the problem in the tests is definitely related to the glob option: the "top level" file Under the hood, "glob search" is based on For the second problemMaybe I've not understood the situation, but I don't think we have a problem: the content of the html has not changed, the only thing that has changed is indentation. It totally depends on how you've made the expected html file. |
Nicolas, thanks for your detailed explanation. I've fixed the tests as you suggested and I'm leaving "as is" the changed HTML content of the other tests. Cheers! |
But now, tests are failing on your (local) side? |
😞 I can see you're on a mac, I'm on ubuntu (as well as the CI)... May not /cc @weaverryan WDYT ? |
If possible, we'd need this change merged soon ... maybe we can merge this and tackle the TOC glob problem in another issue --> #72. Thanks! |
This updates the generated HTML for code listings or code blocks. I've been studying the way code blocks are highlighted in the best modern websites (GitHub, Stripe, etc.) and I think we should do the same. The final HTML is much less verbose, it doesn't rely on tables and the new HTML features are universally supported in browsers.
I'll update tests after rebasing when the other PR related to code is merged. Thanks!