Skip to content

Commit

Permalink
Merge pull request #5703 from xenserver-next/enable-auto-dark-mode-an…
Browse files Browse the repository at this point in the history
…d-print

Hugo docs: Add dark mode support, theme variant selector and print
  • Loading branch information
bernhardkaindl authored Jun 18, 2024
2 parents b3bba59 + fa8a661 commit 7348b74
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.119.0'
hugo-version: '0.127.0'

- name: Build
run: |
Expand Down
26 changes: 24 additions & 2 deletions doc/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,32 @@ assetsDir = "assets"
[[module.imports]]
path = 'github.com/McShelby/hugo-theme-relearn'

# The latest upstream version of hugo-theme-relearn needs hugo 0.121.0:
# https://mcshelby.github.io/hugo-theme-relearn/basics/requirements/index.html
[module.hugoVersion]
min = "0.121.0"

[outputs]
home = [ "HTML", "RSS", "SEARCH"]
# Home and section pages should also have a print icon for the print view:
home = [ "HTML", "RSS", "SEARCH", "PRINT"]
section = [ "HTML", "RSS", "PRINT"]

[params]
themeVariant = "red"
# Enable the theme variant selector, default to auto:
themeVariant = [
"auto",
"zen-light",
"zen-dark",
"red",
"blue",
"green",
"learn",
"neon",
"relearn-light",
"relearn-bright",
"relearn-dark"
]
# auto switches between "red" and "zen-dark" depending on the browser/OS dark mode:
themeVariantAuto = ["red", "zen-dark"]
alwaysopen = false
collapsibleMenu = true

0 comments on commit 7348b74

Please sign in to comment.