Skip to content

Commit

Permalink
RTD: use ./environment-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tridelat committed Feb 6, 2020
1 parent c2c830d commit 16d2a1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 0 additions & 8 deletions docs/environment.yml

This file was deleted.

9 changes: 8 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@
# serve to show the default.

import sys
import os
import subprocess, os
# import sphinx_bootstrap_theme

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
# build C++ docs
subprocess.call('cd ..; doxygen', shell=True)
# build proteus
subprocess.call('cd ../..; make develop-conda', shell=True)

try:
import proteus
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ sphinx:
formats: all

conda:
environment: docs/environment.yml
environment: environment-dev.yml

0 comments on commit 16d2a1c

Please sign in to comment.