• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

source/H25-Oct-2021-2,4391,576

sphinxext/H25-Oct-2021-161129

MakefileH A D25-Oct-20217.3 KiB195159

environment.ymlH A D25-Oct-2021111 98

make.batH A D25-Oct-20217.1 KiB264229

readme-docs.mdH A D25-Oct-20211.6 KiB7037

readme-docs.md

1# Documenting traitlets
2
3
4[Documentation for `traitlets`](https://traitlets.readthedocs.io/en/latest/)
5is hosted on ReadTheDocs.
6
7
8## Build documentation locally
9
10#### Change directory to documentation root:
11
12    cd docs
13
14#### Create environment
15
16* [**conda**] Create conda env (and install relevant dependencies):
17
18        conda env create -f environment.yml
19
20* [**pip**] Create virtual environment (and install relevant dependencies):
21
22        virtualenv traitlets_docs -p python3
23        pip install -r requirements.txt
24
25#### Activate the newly built environment `traitlets_docs`
26
27* [**conda**] Activate conda env:
28
29        source activate traitlets_docs
30
31* [**pip**] The virtualenv should have been automatically activated. If
32     not:
33
34        source activate
35
36#### Build documentation using:
37
38* Makefile for Linux and OS X:
39
40        make html
41
42* make.bat for Windows:
43
44        make.bat html
45
46
47#### Display the documentation locally
48
49* Navigate to `build/html/index.html` in your browser.
50
51* Or alternatively you may run a local server to display
52  the docs. In Python 3:
53
54        python -m http.server 8000
55
56  In your browser, go to `http://localhost:8000`.
57
58
59## Developing Documentation
60
61[Jupyter documentation guide](https://jupyter.readthedocs.io/en/latest/contrib_docs/index.html)
62
63
64## Helpful files and directories
65
66* `source/conf.py` - Sphinx build configuration file
67* `source` directory - source for documentation
68* `source/index.rst` - Main landing page of the Sphinx documentation
69* `requirements.txt` - list of packages to install when using pip
70* `environment.yml` - list of packages to install when using conda