Skip to content

Commit

Permalink
Update the Finding and Draft Finding stylesheet and definition link. (#…
Browse files Browse the repository at this point in the history
…2997)

Co-authored-by: Tab Atkins Jr. <[email protected]>
  • Loading branch information
jyasskin and tabatkins authored Jan 10, 2025
1 parent 44b770a commit a8e792e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions bikeshed/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,11 @@ def fillTextMacros(self, macros: t.DefaultDict[str, str], doc: t.SpecT) -> None:
macros["w3c-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/W3C-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-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/base.css"
macros["w3c-status-url"] = "https://tag.w3.org/findings/"
elif statusName == "DRAFT-FINDING":
macros["w3c-stylesheet-url"] = "https://www.w3.org/StyleSheets/TR/2021/base.css"
macros["w3c-status-url"] = "https://tag.w3.org/findings/"
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"
Expand Down
4 changes: 2 additions & 2 deletions tests/github/w3ctag/evergreen-web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<title>The evergreen web</title>
<meta content="FINDING" name="w3c-status">
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-NOTE" rel="stylesheet">
<link href="https://www.w3.org/StyleSheets/TR/2021/base.css" rel="stylesheet">
<link href="https://w3ctag.github.io/evergreen-web/" rel="canonical">
<link href="https://www.w3.org/2008/site/images/favicon.ico" rel="icon">
<meta content="dark light" name="color-scheme">
Expand Down Expand Up @@ -411,7 +411,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
<h1>The evergreen web</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#FINDING">Finding of the TAG</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p id="w3c-state"><a href="https://tag.w3.org/findings/">Finding of the TAG</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<details open>
<summary>More details about this document</summary>
<div data-fill-with="spec-metadata">
Expand Down
4 changes: 2 additions & 2 deletions tests/github/w3ctag/promises-guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<title>Writing Promise-Using Specifications</title>
<meta content="DRAFT-FINDING" name="w3c-status">
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-DRAFT-FINDING" rel="stylesheet">
<link href="https://www.w3.org/StyleSheets/TR/2021/base.css" rel="stylesheet">
<link href="https://www.w3.org/2001/tag/doc/promises-guide" rel="canonical">
<link href="https://www.w3.org/2008/site/images/favicon.ico" rel="icon">
<meta content="dark light" name="color-scheme">
Expand Down Expand Up @@ -689,7 +689,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
<h1 class="p-name no-ref" id="title">Writing Promise-Using Specifications</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#DRAFT-FINDING">Draft Finding of the TAG</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p id="w3c-state"><a href="https://tag.w3.org/findings/">Draft Finding of the TAG</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<details open>
<summary>More details about this document</summary>
<div data-fill-with="spec-metadata">
Expand Down

0 comments on commit a8e792e

Please sign in to comment.