docs: Move version-related includes to run in sphinx-build not make

Means they show up on ReadTheDocs(!)
This commit is contained in:
Angus Gratton
2018-08-13 12:24:55 +10:00
committed by Angus Gratton
parent 30545f4ccc
commit 69f73eb5ee
3 changed files with 45 additions and 32 deletions

View File

@@ -102,8 +102,8 @@ def main():
language = sys.argv[1]
out_dir = sys.argv[2]
if not os.path.exists(out_dir):
print("Output directory %s not found" % out_dir)
sys.exit(1)
print("Creating directory %s" % out_dir)
os.mkdir(out_dir)
template = TEMPLATES[language]