Skip to content

Commit

Permalink
docs: set specific pypandoc version and conver readme in Python 2/3 c…
Browse files Browse the repository at this point in the history
…ompatible way
  • Loading branch information
Michał Jaworski committed Apr 16, 2018
1 parent 6312e23 commit b1ecd86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Sphinx==1.4.8
docutils<0.13.1
PyOpenGL
glfw
pypandoc
pypandoc==1.4
git-lfs
mock
-e.
6 changes: 4 additions & 2 deletions doc/source/convert_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@


def convert_md():
with open(RST_README_PATH, 'w') as readme:
readme.write(convert(MD_README_PATH, 'rst'))
with open(RST_README_PATH, 'wb') as readme:
converted = convert(MD_README_PATH, 'rst')
readme.write(converted.encode('utf-8'))


if __name__ == '__main__':
convert_md()

0 comments on commit b1ecd86

Please sign in to comment.