From da585f2b5d6997c2f9a985eba40b69be4edfb812 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 18 Jul 2020 11:39:00 +0200 Subject: [PATCH] asciidoc2html: Fix linking of quickstart file The change in #5559 was wrong: We want to link quickstart.html to doc/quickstart.html relatively *inside* the website copy, we don't want to link to the absolute path of the git repository. This happened to work on the old hoster, but broke after the server move to uberspace, where the webserver process isn't allowed to access files outside of the web document root. --- scripts/asciidoc2html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py index 7e5e20d68..5cb49c767 100755 --- a/scripts/asciidoc2html.py +++ b/scripts/asciidoc2html.py @@ -207,8 +207,8 @@ class AsciiDoc: for dst, link_name in [ ('README.html', 'index.html'), - ((REPO_ROOT / 'doc' / 'quickstart.html'), - 'quickstart.html')]: + ((pathlib.Path('doc') / 'quickstart.html'), 'quickstart.html'), + ]: assert isinstance(dst, (str, pathlib.Path)) # for mypy try: (outdir / link_name).symlink_to(dst)