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:
parent
fb6aa96753
commit
da585f2b5d
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue