Skip to content

Commit

Permalink
MNT: Attempted to fix issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Jan 15, 2020
1 parent 192b70c commit 962da10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@
'gallery_dirs': 'source/auto_examples'
}

try:
import gen_rst
except:
pass

# only include examples if the BUILD_PYART_EXAMPLES env. variable is set
if 'BUILD_PYART_EXAMPLES' in os.environ:
extensions.append('gen_rst')

# Configuration options for plot_directive. See:
# https://github.com/matplotlib/matplotlib/blob/f3ed922d935751e08494e5fb5311d3050a3b637b/lib/matplotlib/sphinxext/plot_directive.py#L81
plot_html_show_source_link = False
Expand Down

0 comments on commit 962da10

Please sign in to comment.