Skip to content

Commit

Permalink
update /standards/types to /standards/types/ per linkchecker warning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tantek authored Oct 18, 2024
1 parent 01714b9 commit 61fea1b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bikeshed/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,25 +356,25 @@ def fillTextMacros(self, macros: t.DefaultDict[str, str], doc: t.SpecT) -> None:
statusName = doc.doctype.status.name
if statusName == "FPWD":
macros["w3c-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/W3C-WD"
macros["w3c-status-url"] = "https://www.w3.org/standards/types#FPWD"
macros["w3c-status-url"] = "https://www.w3.org/standards/types/#FPWD"
elif statusName in ("NOTE-FPWD", "NOTE-WD"):
macros["w3c-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/W3C-DNOTE"
macros["w3c-status-url"] = "https://www.w3.org/standards/types#DNOTE"
macros["w3c-status-url"] = "https://www.w3.org/standards/types/#DNOTE"
elif statusName == "FINDING":
macros["w3c-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/W3C-NOTE"
macros["w3c-status-url"] = "https://www.w3.org/standards/types#FINDING"
macros["w3c-status-url"] = "https://www.w3.org/standards/types/#FINDING"
elif statusName == "CG-DRAFT":
macros["w3c-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/cg-draft"
macros["w3c-status-url"] = "https://www.w3.org/standards/types#CG-DRAFT"
macros["w3c-status-url"] = "https://www.w3.org/standards/types/#CG-DRAFT"
elif statusName == "CG-FINAL":
macros["w3c-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/cg-final"
macros["w3c-status-url"] = "https://www.w3.org/standards/types#CG-FINAL"
macros["w3c-status-url"] = "https://www.w3.org/standards/types/#CG-FINAL"
elif statusName == "NOTE-ED":
macros["w3c-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/W3C-ED"
macros["w3c-status-url"] = "https://www.w3.org/standards/types#ED"
macros["w3c-status-url"] = "https://www.w3.org/standards/types/#ED"
else:
macros["w3c-stylesheet-url"] = f"https://www.w3.org/StyleSheets/TR/2021/W3C-{statusName}"
macros["w3c-status-url"] = f"https://www.w3.org/standards/types#{statusName}"
macros["w3c-status-url"] = f"https://www.w3.org/standards/types/#{statusName}"
if self.customWarningText is not None:
macros["customwarningtext"] = parsedTextFromRawLines(
self.customWarningText,
Expand Down

0 comments on commit 61fea1b

Please sign in to comment.