Skip to content

Commit

Permalink
[docs] Translation about image links
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Jul 30, 2024
1 parent e3cb315 commit 6aab11e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/guide.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,26 @@ https://github.com/ftnext/sphinx-new-tab-link
Can refer `GitHub Repository`_ again.
✅ ``image`` directive specified ``:target:`` option

.. image:: _static/breakfast.jpg
:target: https://www.flickr.com/photos/pyconjp/48818171768/in/album-72157710870622516/

.. code-block:: rst
.. image:: _static/breakfast.jpg
:target: https://www.flickr.com/photos/pyconjp/48818171768/in/album-72157710870622516/
✅ ``figure`` directive specified ``:target:`` option

.. figure:: _static/pyconjp2019.jpg
:target: https://www.flickr.com/photos/pyconjp/48743997848/in/album-72157710870622516/

.. code-block:: rst
.. figure:: _static/pyconjp2019.jpg
:target: https://www.flickr.com/photos/pyconjp/48743997848/in/album-72157710870622516/
.. note:: note: Also supports `sphinx.ext.autodoc <https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html>`__!

For HTML built from a docstring containing a URL, your browser open the URL in a new tab.
Expand Down

0 comments on commit 6aab11e

Please sign in to comment.