Skip to content

Commit a1349e8

Browse files
author
Awni Hannun
committed
readthe docs integration 2
1 parent e2c40dc commit a1349e8

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

docs/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ Install [Doxygen](http://www.doxygen.nl/manual/install.html).
99
Install sphinx, breathe and the theme:
1010

1111
```
12-
pip install git+https://github.com/sphinx-doc/sphinx
13-
pip install breathe
14-
pip install sphinx_rtd_theme
12+
pip install -r requirements.txt
1513
```
1614

1715
### Build the Docs

docs/source/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# -*- coding: utf-8 -*-
22

3+
import os
4+
import subprocess
5+
36
import sphinx_rtd_theme
47

8+
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
9+
if read_the_docs_build:
10+
subprocess.call('cd ..; doxygen', shell=True)
11+
512
# -- Project information -----------------------------------------------------
613

714
project = 'flashlight'

0 commit comments

Comments
 (0)