Skip to content

Commit 7027e0f

Browse files
committed
dark.css is used by the dark mode toggle in fixup.js
1 parent ffa5176 commit 7027e0f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/md2html/build.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ for filename in $(ls -1 ../../versions/[23456789].*.md | sort -r) ; do
4848
echo -e "\n=== v$version ==="
4949

5050
node md2html.js --maintainers ./history/MAINTAINERS_v$version.md ${filename} > $tempfile
51-
npx respec --use-local --src $tempfile --out $tempfile
52-
# Dark theme css is directly inserted into the main.css
53-
sed '/<link rel="stylesheet" media="(prefers-color-scheme: dark)" href="https:\/\/www.w3.org\/StyleSheets\/TR\/2021\/dark.css">/d' $tempfile > ../../deploy/oas/v$version.html
51+
npx respec --use-local --src $tempfile --out ../../deploy/oas/v$version.html
5452
rm $tempfile
5553

5654
if [ $version = $latest ]; then

0 commit comments

Comments
 (0)