diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index 33991fa68..aef3b6e51 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -38,7 +38,7 @@ 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', 'sphinx_search.extension', - 'sphinx_tabs.tabs', + 'sphinx_design.tabs', ] import sys diff --git a/docs/sphinx/source/content/Compilation.rst b/docs/sphinx/source/content/Compilation.rst index 4cb10472c..838e51200 100644 --- a/docs/sphinx/source/content/Compilation.rst +++ b/docs/sphinx/source/content/Compilation.rst @@ -18,9 +18,9 @@ Prerequisites The compilation of SofaPython3 requires the installation of some dependencies. The following table lists all of those prerequisites. -.. tabs:: +.. tab-set:: - .. tab:: Ubuntu + .. tab-item:: Ubuntu .. list-table:: :widths: 15 10 30 45 @@ -45,7 +45,7 @@ prerequisites. - - .. tab:: MacOS + .. tab-item:: MacOS .. list-table:: :widths: 15 10 30 45 @@ -70,7 +70,7 @@ prerequisites. - - .. tab:: Windows + .. tab-item:: Windows .. list-table:: :widths: 15 10 30 45 diff --git a/docs/sphinx/source/content/Installation.rst b/docs/sphinx/source/content/Installation.rst index 41d76b6a1..4d1aef413 100644 --- a/docs/sphinx/source/content/Installation.rst +++ b/docs/sphinx/source/content/Installation.rst @@ -21,9 +21,9 @@ Get python installed First, make sure you have the same version of python installed on your computer as the one that is used in the binary version. -.. tabs:: +.. tab-set:: - .. tab:: Ubuntu + .. tab-item:: Ubuntu Run in a terminal: @@ -40,7 +40,7 @@ First, make sure you have the same version of python installed on your computer sudo apt install libopengl0 - .. tab:: MacOS + .. tab-item:: MacOS Run in a terminal: @@ -63,7 +63,7 @@ First, make sure you have the same version of python installed on your computer pip3 install numpy - .. tab:: Windows + .. tab-item:: Windows Download and install `Python 3.12 64bit `_ @@ -97,9 +97,9 @@ using python3 Before running your simulations, you must make sure to define the following environment variables: -.. tabs:: +.. tab-set:: - .. tab:: Ubuntu + .. tab-item:: Ubuntu Run in a terminal: @@ -108,7 +108,7 @@ Before running your simulations, you must make sure to define the following envi export SOFA_ROOT=/path/to/SOFA_install export PYTHONPATH=/path/to/SofaPython3/lib/python3/site-packages:$PYTHONPATH - .. tab:: MacOS + .. tab-item:: MacOS Run in a terminal: @@ -119,7 +119,7 @@ Before running your simulations, you must make sure to define the following envi export PATH="/usr/local/opt/python@3.12/bin/:$PATH" - .. tab:: Windows + .. tab-item:: Windows * Create a system variable **SOFA_ROOT** and set it to ```` * Create a system variable **PYTHON_ROOT** and set it to ```` diff --git a/docs/sphinx/source/content/UsingThePlugin.rst b/docs/sphinx/source/content/UsingThePlugin.rst index ae6416ef2..d076d7dce 100644 --- a/docs/sphinx/source/content/UsingThePlugin.rst +++ b/docs/sphinx/source/content/UsingThePlugin.rst @@ -12,9 +12,9 @@ Prerequisites If you downloaded and installed SOFA and its headers from the `SOFA website `_, make sure to have python3.10 installed on your computer. -.. tabs:: +.. tab-set:: - .. tab:: Ubuntu + .. tab-item:: Ubuntu Run in a terminal: @@ -31,7 +31,7 @@ If you downloaded and installed SOFA and its headers from the `SOFA website `_ @@ -98,9 +98,9 @@ Within a python3 interpreter Before running your simulations, you must make sure to define the following environment variables: -.. tabs:: +.. tab-set:: - .. tab:: Ubuntu + .. tab-item:: Ubuntu Run in a terminal: @@ -109,7 +109,7 @@ Before running your simulations, you must make sure to define the following envi export SOFA_ROOT=/path/to/SOFA_install export PYTHONPATH=/path/to/SofaPython3/lib/python3/site-packages:$PYTHONPATH - .. tab:: MacOS + .. tab-item:: MacOS Run in a terminal: @@ -120,7 +120,7 @@ Before running your simulations, you must make sure to define the following envi export PATH="/usr/local/opt/python@3.10/bin/:$PATH" - .. tab:: Windows + .. tab-item:: Windows * Create a system variable **SOFA_ROOT** and set it to ```` * Create a system variable **PYTHON_ROOT** and set it to ```` diff --git a/docs/sphinx/source/requirements.txt b/docs/sphinx/source/requirements.txt index 20b945d12..ffbfba828 100644 --- a/docs/sphinx/source/requirements.txt +++ b/docs/sphinx/source/requirements.txt @@ -3,5 +3,5 @@ sphinxcontrib-contentui readthedocs-sphinx-search sphinx-autodoc-typehints sphinx-rtd-theme -sphinx-tabs +sphinx-design sphinx-autosummary-autocollect