Skip to content

Commit

Permalink
🌚 add auto-dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Nov 26, 2024
1 parent 50b1823 commit 0fae36d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ jobs:
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Turn on auto-dark mode
shell: bash
run: |
awk 'NR==1, /---/ {if (!done && /---/) {print "---\nfilters:\n - auto-dark"; done=1; next}} 1' README.qmd > index.qmd
quarto add gadenbuie/quarto-auto-dark --no-prompt
- name: Render README
shell: bash
run: quarto render README.qmd --to html --output index.html
run: quarto render index.qmd --to html

# From GitHub's "Static HTML" workflow template
- name: Setup Pages
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
/.luarc.json
/node_modules
.DS_Store

/.quarto/

0 comments on commit 0fae36d

Please sign in to comment.