You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.rst
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,32 @@ To enable the extension in Sphinx, add the following to your conf.py:
16
16
17
17
extensions = ['sphinx_tabs.tabs']
18
18
19
-
If needed, there is a configuration option to allow additional builders to be considered compatible. For example, to add the `linkcheck` builder, add the following to your conf.py:
19
+
If you are using `Read The Docs <https://readthedocs.org/>`_ for building your documentation, the extension must be added as a requirement. Please add `sphinx-tabs` to `requirements.txt` at the root of the project or in your docs folder.
20
+
21
+
Sphinx Configuration
22
+
====================
23
+
24
+
If needed, there is a configuration option to allow additional builders to be considered compatible. For example, to add the `linkcheck` builder, add the following to your `conf.py`:
20
25
21
26
.. code-block:: python
22
27
23
28
sphinx_tabs_valid_builders = ['linkcheck']
24
29
25
-
Custom lexers that have been loaded in the sphinx config can be used with `code-tabs`.
26
30
27
-
If you are using `Read The Docs <https://readthedocs.org/>`_ for building your documentation, the extension must be added as a requirement. Please add `sphinx-tabs` to `requirements.txt` at the root of the project.
31
+
By default, tabs can be closed by selecting the open tab. This functionality can be disabled using the `sphinx_tabs_disable_tab_closing` configuration option:
32
+
33
+
.. code-block:: python
34
+
35
+
sphinx_tabs_disable_tab_closing =True
36
+
37
+
38
+
Custom lexers that have been loaded in the sphinx `conf.py` can be used with `code-tabs`:
0 commit comments