diff options
author | Florian Bruhin <git@the-compiler.org> | 2016-01-04 22:51:01 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2016-01-04 22:51:01 +0100 |
commit | 8d63f2bf935302e133e7e632d1e110d22fd350e3 (patch) | |
tree | b123730e59425129183d1bfe2b47bec8d389c5c7 /scripts/asciidoc2html.py | |
parent | 705d77abfbe4b151ed2d6486548b904619af0309 (diff) | |
download | qutebrowser-8d63f2bf935302e133e7e632d1e110d22fd350e3.tar.gz qutebrowser-8d63f2bf935302e133e7e632d1e110d22fd350e3.zip |
www: symlink quickstart.html correctly.
Fixes #1203.
Diffstat (limited to 'scripts/asciidoc2html.py')
-rwxr-xr-x | scripts/asciidoc2html.py | 12 |
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.""" |