"src/vscode:/vscode.git/clone" did not exist on "8d36d5adb1edb8eaaa40a29ef5510f51c503f19e"
README.md 705 Bytes
Newer Older
Minjie Wang's avatar
Minjie Wang committed
1
2
3
DGL document and tutorial folder
================================

4
5
6
7
Requirements
------------
* sphinx
* sphinx-gallery
Minjie Wang's avatar
Minjie Wang committed
8
* sphinx_rtd_theme
9
10
11
12
13
14
* sphinx_copybutton
* torch
* mxnet
* pillow
* matplotlib

15

16
17
18
19
20
21
22
23
Build documents
---------------
First, clean up existing files:
```
./clean.sh
```

Then build:
Minjie Wang's avatar
Minjie Wang committed
24
25
26
27
```
make html
```

28
29
30
31
32
33
34
35
36
37
Note: due to the backend loading issue, it actually takes 2 rounds to build:
1. build tutorials that uses MXNet as backend
2. build tutorials that uses PyTorch as backend

Render locally
--------------
```
cd build/html
python3 -m http.server 8000
```
38
39
40
41

Add new folders
---------------
Add the path of the new folder in the two lists `examples_dirs` and `gallery_dirs` in docs/source/conf.py.