Skip to content

Commit 20979d9

Browse files
authored
Add inline tabs on Helping with the Developer’s Guide page for commands on different systems (#1223)
1 parent cc50bac commit 20979d9

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

documentation/devguide.rst

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
Helping with the Developer's Guide
55
==================================
66

7+
.. raw:: html
8+
9+
<script>
10+
document.addEventListener('DOMContentLoaded', function() {
11+
activateTab(getOS());
12+
});
13+
</script>
14+
715
.. highlight:: console
816

917
The Developer's Guide (what you're reading now) uses the same process as the
@@ -32,15 +40,21 @@ To build the devguide, some additional dependencies are required (most
3240
importantly, `Sphinx`_), and the standard way to install dependencies in
3341
Python projects is to create a virtualenv, and then install dependencies from
3442
a ``requirements.txt`` file. For your convenience, this is all *automated for
35-
you*. To build the devguide on a Unix-like system use::
43+
you*.
44+
45+
To build the devguide from the checkout directory:
46+
47+
.. tab:: Unix/macOS
48+
49+
.. code-block:: shell
3650
37-
$ make html
51+
make html
3852
39-
in the checkout directory. On Windows use:
53+
.. tab:: Windows
4054

41-
.. code-block:: doscon
55+
.. code-block:: dosbatch
4256
43-
> .\make html
57+
.\make html
4458
4559
You will find the generated files in ``_build/html``.
4660

0 commit comments

Comments
 (0)