executablebooks / sphinx-tabs

Tabbed views for Sphinx
https://sphinx-tabs.readthedocs.io
MIT License
263 stars 67 forks source link

BUG: Code box no longer visible #151

Closed snowman2 closed 2 years ago

snowman2 commented 2 years ago

Describe the bug

context I think it is related to #147 as it was working fine until we upgraded dependencies and re-built the docs yesterday.

expectation Previously I could see the CLI/Python. Now they are no longer visible.

bug image image

problem It is a problem to not be able to see the code in the example.

Reproduce the bug

Create rst file and build with sphinx:

.. tabs::

   .. code-tab:: bash

        cli code to run

   .. code-tab:: py

        import rioxarray

        rds = rioxarray.open_rasterio(...)

List your environment

python -m pip freeze | grep sphinx
nbsphinx==0.8.8
sphinx-click==3.1.0
sphinx-rtd-theme==1.0.0
sphinx-tabs==3.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
python --version
Python 3.10.2
welcome[bot] commented 2 years ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

Daltz333 commented 2 years ago

The styles and tags changed with the docutils 0.17 bump. This is a breaking change. You can manually pin docutils to 0.16 or update your theme.

snowman2 commented 2 years ago

Thanks for the info!

return42 commented 2 years ago

Sorry, I have seen this issue to late and opened #152.

The styles and tags changed with the docutils 0.17 bump.

This is not the issue, with https://github.com/executablebooks/sphinx-tabs/commit/7915f63094d728654cfc9efd1d90fda479c285a5 reverted, the issue is fixed .. even with docutils v0.17.1.