Correction of two code-blocks python -> pycon after suggestion from #1424 - #1428
Conversation
…rom pypa#1424 and command `grep -r 'code-block:: python' -A 3 .`.
|
@sinoroc @jeanas I wanted to create an issue to add a warning in the rst parser. I think it would be very easy to find code-blocks with python starting with >>> and output a warning saying it should probably be pycon instead of python. What is the right package to submit this idea ? Is it https://pypi.org/project/docutils/ ? |
|
It would be either Sphinx, the documentation generator, or Pygments, the syntax highlighter. I've just opened pygments/pygments#2603 on Pygments. |
|
(Sphinx is built on top of docutils, but syntax highlighting support lives in Sphinx, not in docutils.) |
|
Anyone to merge this trivial fix? |
|
Thanks for the validation and the merge :) |
Hello :),
I just used:
in case there was anything else to correct and found another spot.
Best regards,
Laurent Lyaudet
📚 Documentation preview 📚: https://python-packaging-user-guide--1428.org.readthedocs.build/en/1428/