Skip to content

Commit

Permalink
docs: try to generate readme.rst on rtd build
Browse files Browse the repository at this point in the history
  • Loading branch information
swistakm committed Jun 15, 2015
1 parent d421cf2 commit 38d4b0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
# import solrq in order to retrieve version info
import solrq

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
from convert_readme import convert_md
convert_md()

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
1 change: 1 addition & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pypandoc

0 comments on commit 38d4b0c

Please sign in to comment.