sphinx-tabs icon indicating copy to clipboard operation
sphinx-tabs copied to clipboard

Reference to code-blocks/images

Open Jakob933 opened this issue 5 years ago • 2 comments

We use sphinx-tabs in the Open Source project ONAP by the Linux Foundation.

When we try to reference code-blocks or images in tabs it just works when the referenced tab is open. When another tab is open unfortunately it doesn't work. Is there any possibility to fix this?

Code Example:

:ref:`ref code <ref_code>`

.. tabs::

   .. tab:: Tab 1

   .. tab:: Tab 2

      .. _ref_code:

      .. code-block::
         
         hello world

Jakob933 avatar Aug 04 '20 19:08 Jakob933

You can check issue #47 if the solution there can work for you.

stefanodavid avatar Aug 06 '20 06:08 stefanodavid

Hi Stefano, thanks for your answer.

You're right Issue 47 focuses on the same problem. A way to reference to the tab with :ref: like it is mentioned in the last message would also help us a lot. Showing the tab trough URL doesn't help us that much unfortunately.

Jakob933 avatar Aug 06 '20 07:08 Jakob933