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
To find the pre-defined tab sets, see the `Snooty configuration file <https://github.com/mongodb/snooty-parser/blob/master/snooty/rstspec.toml>`__.
89
+
Each entry starts with ``[directive.tabs-``.
115
90
116
91
Pre-defined tab sets require the following fields for each tab:
117
92
@@ -173,40 +148,8 @@ code examples stored in different files:
173
148
Defining a New Tab Set
174
149
~~~~~~~~~~~~~~~~~~~~~~
175
150
176
-
Create a new tab set if a pre-defined tab set best suits your use case
177
-
but does not exist. New tab sets are defined in the
178
-
``docs-tools/sphinxext/tabs.py`` file.
179
-
180
-
The following guide walks through creating the ``tabs-platforms``
181
-
directive, the operating systems tab set:
182
-
183
-
#. Call the methods below and provide a tab set name and an array of
184
-
tuples in the ``('id', 'displayName')`` format. The following example
185
-
creates the ``tabs-platforms`` tab set:
186
-
187
-
.. code-block:: python
188
-
189
-
# Create operating system tab directive
190
-
app.add_directive('tabs-platforms',
191
-
create_tab_directive('platforms',
192
-
[('windows', 'Windows'),
193
-
('macos', 'macOS'),
194
-
('linux', 'Linux'),
195
-
('debian', 'Debian'),
196
-
('rhel', 'RHEL')]))
197
-
198
-
.. note::
199
-
200
-
The first argument to ``create_tab_directive`` should use
201
-
``camelCase`` naming. Using hyphens (e.g. ``stitch-sdks`` vs
202
-
``stitchSdks``) will cause an error while building.
203
-
204
-
#. Test changes with a clean build of a docs repo. You must create a
205
-
symlink from the ``build/docs-tools`` directory to the ``docs-tools``
206
-
directory containing the changes. Check in the changes and then begin
207
-
using the new directive on your page.
208
-
209
-
.. _custom-tab-set:
151
+
To learn more about creating a new pre-defined tab set, contact the
0 commit comments