Skip to content

Commit d168d8c

Browse files
committed
update workflow
1 parent 5b9a6dd commit d168d8c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929

3030
- name: Convert README.md to index.html with dark mode
3131
run: |
32-
pandoc README.md -o index.html --metadata title="HyperionBox" --standalone --css <(cat <<EOF
32+
rm -f index.html
33+
34+
# Create temporary dark-mode-aware CSS file
35+
cat <<EOF > dark.css
3336
body {
3437
margin: 0;
3538
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
36-
background-color: #fff;
39+
background-color: #ffffff;
3740
color: #24292f;
3841
padding: 2em;
3942
}
@@ -49,8 +52,10 @@ jobs:
4952
max-width: 100%;
5053
height: auto;
5154
}
52-
EOF
53-
)
55+
EOF
56+
57+
# Generate styled index.html from README.md
58+
pandoc README.md -o index.html --metadata title="HyperionBox" --standalone --css=dark.css
5459
5560
- name: Build with Jekyll
5661
uses: actions/jekyll-build-pages@v1
@@ -71,5 +76,3 @@ EOF
7176
- name: Deploy to GitHub Pages
7277
id: deployment
7378
uses: actions/deploy-pages@v4
74-
75-

0 commit comments

Comments
 (0)