@@ -18,31 +18,43 @@ this array API standard.
1818
1919## Building docs locally  
2020
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.
2526
2627``` 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
2832``` 
2933
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+ 
3042To build specific versions of the spec, run ` sphinx-build `  on the respective
3143folder in ` spec/ ` , e.g.
3244
3345``` sh 
34- $ sphinx-build spec/draft / _site/draft /
46+ $ sphinx-build spec/2012.12 / _site/2012.12 /
3547``` 
3648
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
3950
4051``` sh 
41- $ make
42- $ ls _site/
43- 2021.12/  draft/  index.html  latest/  versions.json
52+ $ sphinx-build spec/draft/ _site/draft/
4453``` 
4554
55+ To build the whole website, which includes every version of the spec, you can
56+ utilize ` make spec ` .
57+ 
4658
4759## Making a spec release  
4860
0 commit comments