2018-10-23 16:27:15 -04:00
DGL document and tutorial folder
================================
2019-01-04 17:02:37 -05:00
Requirements
------------
2022-01-25 17:22:18 +08:00
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:
2022-09-01 13:52:08 +08:00
* sphinx==4.2.0
2019-01-04 17:02:37 -05:00
* sphinx-gallery
2019-08-23 16:38:48 -04:00
* sphinx_rtd_theme
2021-08-28 21:14:43 +02:00
* sphinx_copybutton
* torch
* mxnet
* pillow
* matplotlib
2019-01-04 17:02:37 -05:00
2018-12-12 11:07:46 -05:00
Build documents
---------------
First, clean up existing files:
```
./clean.sh
```
Then build:
2018-10-23 16:27:15 -04:00
```
make html
```
2018-12-12 11:07:46 -05:00
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
```
2021-06-04 21:50:16 +08:00
Add new folders
---------------
Add the path of the new folder in the two lists `examples_dirs` and `gallery_dirs` in docs/source/conf.py.