-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support for headings in tabs #74
Comments
@chrisjsewell do you know if it's possible to nest a heading inside another reST directive? I tried with |
HI @foster999 I am 99% sure that headings are in some sense "absolute" and can not be part of any other element or, like in your case, directives. This is not even a sphinx issue, but it is due to the underlying docutils implementation. I tried in the past to put a heading within an |
I think an alternative is to "fake" the heading with the appearance of the heading. Although this might not be obvious to the user. |
Thanks @stefanodavid, it does look like this is the case. As @Daltz333 mentioned, you can fake headings in appearance but won't be able to create direct links to them. The easiest way I've found to do this is using HTML |
Yes, I agree that a fake heading would work, but it is IMHO a poor workaround: it would not be maintainable, in won't show up in either |
We use sphinx-tabs in the Open Source project ONAP by the Linux Foundation.
Unfortunately we did not find a way to show headings in tabs. This means we can't create sections and can not reference to them in toc's. It would be really helpful for us to have a solution for this issue.
Example:
The text was updated successfully, but these errors were encountered: