Skip to content

Commit

Permalink
rtd: duct taping
Browse files Browse the repository at this point in the history
  • Loading branch information
swistakm committed Jun 15, 2015
1 parent 38d4b0c commit f7b90f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
# import solrq in order to retrieve version info
import solrq

# this is quite dirty approach but we're not working at NASA and nobody can die
# because of that. Am I right?
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from convert_readme import convert_md
convert_md()

Expand Down

0 comments on commit f7b90f6

Please sign in to comment.