Make the currently released version available on the website

This commit is contained in:
Kovid Goyal 2019-01-29 21:48:11 +05:30
parent c2f6450af3
commit 12e269e791
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -66,6 +66,8 @@ def run_website(args):
if os.path.exists(publish_dir): if os.path.exists(publish_dir):
shutil.rmtree(publish_dir) shutil.rmtree(publish_dir)
shutil.copytree(os.path.join(docs_dir, '_build', 'html'), publish_dir) shutil.copytree(os.path.join(docs_dir, '_build', 'html'), publish_dir)
with open(os.path.join(publish_dir, 'current-version.txt'), 'w') as f:
f.write(version)
shutil.copy2(os.path.join(docs_dir, 'installer.sh'), publish_dir) shutil.copy2(os.path.join(docs_dir, 'installer.sh'), publish_dir)
installer = os.path.join(docs_dir, 'installer.py') installer = os.path.join(docs_dir, 'installer.py')
subprocess.check_call([ subprocess.check_call([