From a1349e84c9be19ecbbdc28d2d5a8eeeaaaa06273 Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Fri, 21 Dec 2018 15:30:46 -0500 Subject: [PATCH] readthe docs integration 2 --- docs/README.md | 4 +--- docs/source/conf.py | 7 +++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index b9ccf7550..bae0deaff 100644 --- a/docs/README.md +++ b/docs/README.md @@ -9,9 +9,7 @@ Install [Doxygen](http://www.doxygen.nl/manual/install.html). Install sphinx, breathe and the theme: ``` -pip install git+https://github.com/sphinx-doc/sphinx -pip install breathe -pip install sphinx_rtd_theme +pip install -r requirements.txt ``` ### Build the Docs diff --git a/docs/source/conf.py b/docs/source/conf.py index f8033891e..b7bc15ad1 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,7 +1,14 @@ # -*- coding: utf-8 -*- +import os +import subprocess + import sphinx_rtd_theme +read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' +if read_the_docs_build: + subprocess.call('cd ..; doxygen', shell=True) + # -- Project information ----------------------------------------------------- project = 'flashlight'