@@ -18,31 +18,43 @@ this array API standard.
18
18
19
19
## Building docs locally
20
20
21
- The spec website is comprised of multiple Sphinx docs (one for each spec version),
22
- all of which exist in ` spec/ ` and rely on the modules found in ` src/ ` (most
23
- notably ` array_api_stubs ` ). To install these modules and the additional
24
- dependencies of the Sphinx docs, you can use
21
+ ### Quickstart
22
+
23
+ To install the local stubs and additional dependencies of the Sphinx docs, you
24
+ can use ` pip install -r doc-requirements.txt ` . Then just running ` make ` at the
25
+ root of the repository should build the whole spec website.
25
26
26
27
``` sh
27
- $ pip install -e .[doc] # ensure you install the dependencies extra "doc"
28
+ $ pip install -r doc-requirements.txt
29
+ $ make
30
+ $ ls _site/
31
+ 2021.12/ draft/ index.html latest/ versions.json
28
32
```
29
33
34
+ ### The nitty-gritty
35
+
36
+ The spec website is comprised of multiple Sphinx docs (one for each spec version),
37
+ all of which exist in ` spec/ ` and rely on the modules found in ` src/ ` (most
38
+ notably ` array_api_stubs ` ). For purposes of building the docs, these ` src/ `
39
+ modules do not need to be installed as they are added to the ` sys.path ` at
40
+ runtime.
41
+
30
42
To build specific versions of the spec, run ` sphinx-build ` on the respective
31
43
folder in ` spec/ ` , e.g.
32
44
33
45
``` sh
34
- $ sphinx-build spec/draft / _site/draft /
46
+ $ sphinx-build spec/2012.12 / _site/2012.12 /
35
47
```
36
48
37
- To build the whole website, which includes every version of
38
- the spec, you can utilize the ` make ` commands defined in ` spec/Makefile ` ; e.g.,
49
+ Additionally, ` make draft ` aliases
39
50
40
51
``` sh
41
- $ make
42
- $ ls _site/
43
- 2021.12/ draft/ index.html latest/ versions.json
52
+ $ sphinx-build spec/draft/ _site/draft/
44
53
```
45
54
55
+ To build the whole website, which includes every version of the spec, you can
56
+ utilize ` make spec ` .
57
+
46
58
47
59
## Making a spec release
48
60
0 commit comments