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
@@ -193,6 +193,13 @@ Or if using ``pip``, you can grab them with:
193
193
python -m pip install -r requirements.txt
194
194
```
195
195
196
+
If you plan to generate and build the API reference documentation extracted from Spyder's docstrings, you'll also need to install Spyder in development mode as well as its dev dependencies.
197
+
To do so, you can run the ``install_dev_repos.py`` script in the ``spyder`` submodule:
198
+
199
+
```shell
200
+
python install_dev_repos.py
201
+
```
202
+
196
203
197
204
198
205
## Installing and Using the Pre-Commit Hooks
@@ -247,7 +254,13 @@ To build the project using Nox, just run
247
254
nox -s build
248
255
```
249
256
250
-
and can then open the rendered output in your default web browser with
257
+
or, to also extract, generate and build the API reference from Spyder's docstrings (expensive the first time), pass the ``-t autodoc`` argument to any build command:
258
+
259
+
```shell
260
+
nox -s build -- -t autodoc
261
+
```
262
+
263
+
and then open the rendered output in your default web browser with
251
264
252
265
```shell
253
266
nox -s serve
@@ -256,7 +269,7 @@ nox -s serve
256
269
Alternatively, to automatically rebuild the project when changes occur, you can invoke
257
270
258
271
```shell
259
-
nox -s autobuild
272
+
nox -s autorebuild
260
273
```
261
274
262
275
You can also pass your own custom [Sphinx build options](https://www.sphinx-doc.org/en/master/man/sphinx-build.html) after a ``--`` separator, which are added to the default set.
@@ -266,6 +279,12 @@ For example, to rebuild just the install guide and FAQ in verbose mode with the
or to also extract, generate and build the API reference from Spyder's docstrings (requires Spyder and its dependencies to be installed in your environment):
Then, navigate to the ``_build/html`` directory inside the ``spyder-docs`` repository and open ``index.html`` (the main page of the docs) in your preferred browser.
279
304
305
+
When changing build options (particularly autodoc), cleaning the generated files first avoids spurious errors:
0 commit comments