summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authortoofar <toofar@spalge.com>2023-03-18 16:24:58 +1300
committertoofar <toofar@spalge.com>2023-03-18 16:24:58 +1300
commit856fe781a1ce5cbe8033894fce3166d46ab5439e (patch)
tree446f274e33aa0cab9bf5b60e32dcf0e90c1fbf41 /scripts
parent1c4b5cc3d202a2eb960114eecb04d7bf236b7ac1 (diff)
parentcd5624f50ad92317868514ad5b024a58dbdb233c (diff)
downloadqutebrowser-856fe781a1ce5cbe8033894fce3166d46ab5439e.tar.gz
qutebrowser-856fe781a1ce5cbe8033894fce3166d46ab5439e.zip
Merge remote-tracking branch 'upstream/qt6-v2' into master-qt6
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/asciidoc2html.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py
index 6f3b170af..a7816e132 100755
--- a/scripts/asciidoc2html.py
+++ b/scripts/asciidoc2html.py
@@ -84,12 +84,15 @@ class AsciiDoc:
dst = DOC_DIR / (src.stem + ".html")
files.append((src, dst))
- # patch image links to use local copy
replacements = [
+ # patch image links to use local copy
("https://raw.githubusercontent.com/qutebrowser/qutebrowser/master/doc/img/cheatsheet-big.png",
"qute://help/img/cheatsheet-big.png"),
("https://raw.githubusercontent.com/qutebrowser/qutebrowser/master/doc/img/cheatsheet-small.png",
- "qute://help/img/cheatsheet-small.png")
+ "qute://help/img/cheatsheet-small.png"),
+
+ # patch relative links to work with qute://help flat structure
+ ("link:../", "link:"),
]
asciidoc_args = ['-a', 'source-highlighter=pygments']