Skip to content
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

Reference to code-blocks/images #75

Open
Jakob933 opened this issue Aug 4, 2020 · 2 comments
Open

Reference to code-blocks/images #75

Jakob933 opened this issue Aug 4, 2020 · 2 comments

Comments

@Jakob933
Copy link

Jakob933 commented Aug 4, 2020

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
@stefanodavid
Copy link

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

@Jakob933
Copy link
Author

Jakob933 commented Aug 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants