www: symlink quickstart.html correctly.

Fixes #1203.
This commit is contained in:
Florian Bruhin 2016-01-04 22:51:01 +01:00
parent 705d77abfb
commit 8d63f2bf93

View File

@ -179,10 +179,14 @@ class AsciiDoc:
pass
shutil.copytree(src, full_dest)
try:
os.symlink('README.html', os.path.join(outdir, 'index.html'))
except FileExistsError:
pass
for dst, link_name in [
('README.html', 'index.html'),
(os.path.join('doc', 'quickstart.html'), 'quickstart.html'),
]:
try:
os.symlink(dst, os.path.join(outdir, link_name))
except FileExistsError:
pass
def _get_asciidoc_cmd(self):
"""Try to find out what commandline to use to invoke asciidoc."""