summaryrefslogtreecommitdiff
path: root/scripts/asciidoc2html.py
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2016-01-04 22:51:01 +0100
committerFlorian Bruhin <git@the-compiler.org>2016-01-04 22:51:01 +0100
commit8d63f2bf935302e133e7e632d1e110d22fd350e3 (patch)
treeb123730e59425129183d1bfe2b47bec8d389c5c7 /scripts/asciidoc2html.py
parent705d77abfbe4b151ed2d6486548b904619af0309 (diff)
downloadqutebrowser-8d63f2bf935302e133e7e632d1e110d22fd350e3.tar.gz
qutebrowser-8d63f2bf935302e133e7e632d1e110d22fd350e3.zip
www: symlink quickstart.html correctly.
Fixes #1203.
Diffstat (limited to 'scripts/asciidoc2html.py')
-rwxr-xr-xscripts/asciidoc2html.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py
index b731d3cfe..5a0f46d99 100755
--- a/scripts/asciidoc2html.py
+++ b/scripts/asciidoc2html.py
@@ -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."""