Skip to content

Commit

Permalink
trying to run apidoc from inside conf.py in RTD envs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRook committed Jun 24, 2016
1 parent f191650 commit d880349
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,8 @@

# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

#Run apidoc if inside a ReadTheDocs environment:
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
os.system("sphinx-apidoc -f -o doc/source nflwin/ nflwin/tests")

0 comments on commit d880349

Please sign in to comment.