README.md 900 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==4.2.0
9
* sphinx-gallery
Minjie Wang's avatar
Minjie Wang committed
10
* sphinx_rtd_theme
11
* sphinx_copybutton
12
13
* nbsphinx>=0.8.11
* nbsphinx-link>=1.3.0
14
15
* pillow
* matplotlib
16
17
18
19
* nltk
* seaborn
* ogb
* rdflib
20

21

22
23
24
25
26
27
28
Build documents
---------------
First, clean up existing files:
```
./clean.sh
```

29
To build for PyTorch backend only,
Minjie Wang's avatar
Minjie Wang committed
30
```
31
32
33
34
35
36
make pytorch
```

To build for MXNet backend only,
```
make mxnet
Minjie Wang's avatar
Minjie Wang committed
37
38
```

39
40
41
42
To build for both backends,
```
make html
```
43
44
45
46
47
48
49

Render locally
--------------
```
cd build/html
python3 -m http.server 8000
```
50
51
52
53

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