Hacker News new | ask | show | jobs
by stsewd 1957 days ago
Another way to achive this is in sphinx is using https://github.com/executablebooks/sphinx-tabs
1 comments

sphinx-inline-tabs is probably better for this use case because all tabs with the same label are synchronized on the page. So if you want to offer different instructions for a number of environments, you only need to select it once per page.

Example: https://pip.pypa.io/en/stable/installing/#installing-with-ge...

Sphinx tabs supports that https://github.com/executablebooks/sphinx-tabs#grouped-tabs, haven't used sphinx-inline-tabs