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.
This commit is contained in:
Florian Bruhin 2020-07-18 11:39:00 +02:00
parent fb6aa96753
commit da585f2b5d
1 changed files with 2 additions and 2 deletions

View File

@ -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)