Skip to content

Commit 635cb43

Browse files
committed
Use tabs for Markdown and reStructuredText, addresses review comment
1 parent 8e0fca4 commit 635cb43

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

‎source/guides/making-a-pypi-friendly-readme.rst‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,22 @@ accessible HTTPS URL pointing directly to the image. For an image hosted in a
6565
source repository, use the raw file URL rather than the repository's page for
6666
the file.
6767

68-
In :file:`README.md`, use Markdown image syntax:
68+
.. tab:: Markdown
6969

70-
.. code-block:: markdown
70+
In :file:`README.md`, use Markdown image syntax:
7171

72-
![Screenshot of the application](https://example.com/screenshot.png)
72+
.. code-block:: markdown
7373
74-
In :file:`README.rst`, use the reStructuredText ``image`` directive:
74+
![Screenshot of the application](https://example.com/screenshot.png)
7575
76-
.. code-block:: rst
76+
.. tab:: reStructuredText
7777

78-
.. image:: https://example.com/screenshot.png
79-
:alt: Screenshot of the application
78+
In :file:`README.rst`, use the reStructuredText ``image`` directive:
79+
80+
.. code-block:: rst
81+
82+
.. image:: https://example.com/screenshot.png
83+
:alt: Screenshot of the application
8084
8185
Relative paths such as ``docs/screenshot.png`` may work on your repository's
8286
website, but will not work on PyPI. PyPI does not serve image files from your

0 commit comments

Comments
 (0)