Skip to content

Commit 667a2da

Browse files
ayazhafizcalebcartwright
authored andcommitted
Fix stable toggle on gh pages configuration site
A demonstration of the fix is included in the PR associated with this commit.
1 parent 1d6002a commit 667a2da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@
155155
head: val[0].text,
156156
value: val,
157157
stable: val.some((elem) => {
158-
return !!elem.text && elem.text.includes("**Stable**: Yes")
158+
return elem.type === "list" &&
159+
!!elem.raw &&
160+
elem.raw.includes("**Stable**: Yes");
159161
}),
160162
text: val.reduce((result, next) => {
161163
return next.text != null
@@ -188,4 +190,4 @@
188190
}
189191
</script>
190192
</body>
191-
</html>
193+
</html>

0 commit comments

Comments
 (0)