File size: 460 Bytes
f9e4a6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

rm -rf docs
# reStructuredText in python files to rst. Documentation in docs folder
sphinx-apidoc -A "Alyssa Quek" -f -F -o docs facemorpher/

cd docs

# Append module path to end of conf file
echo "" >> conf.py
echo "import os" >> conf.py
echo "import sys" >> conf.py
echo "sys.path.insert(0, os.path.abspath('../'))" >> conf.py
echo "sys.path.insert(0, os.path.abspath('../facemorpher'))" >> conf.py

# Make sphinx documentation
make html
cd ..