Skip to content

Commit 18238f3

Browse files
Bug fix generated links in documentation
1 parent 3cb5ea5 commit 18238f3

File tree

2 files changed

+113
-112
lines changed

2 files changed

+113
-112
lines changed

meta/scrape_tags.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def format_description(description: str, ele: str) -> str:
196196
"""
197197
# Manual links
198198
description = description.replace(
199-
"](/en-US/docs/Web",
199+
"](/en-US/docs/Web/",
200200
f"]({MDN_BASE}",
201201
)
202202

@@ -208,6 +208,7 @@ def format_description(description: str, ele: str) -> str:
208208
# In format key("arg1", "arg2")
209209

210210
key, args = element_text.split("(")
211+
args = args.removesuffix(")")
211212

212213
# Split up args
213214
if "," in args:

0 commit comments

Comments
 (0)