README.md 880 Bytes
Newer Older
Minjie Wang's avatar
Minjie Wang committed
1
2
3
DGL document and tutorial folder
================================

4
5
Requirements
------------
6
You need to build DGL locally first (as described [here](https://docs.dgl.ai/install/index.html#install-from-source)), and ensure the following python packages are installed:
7
8
* sphinx
* sphinx-gallery
Minjie Wang's avatar
Minjie Wang committed
9
* sphinx_rtd_theme
10
11
12
13
14
15
* sphinx_copybutton
* torch
* mxnet
* pillow
* matplotlib

16

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

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

29
30
31
32
33
34
35
36
37
38
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
```
39
40
41
42

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