Skip to content

Commit 64f3c30

Browse files
committed
docs: Enable dark mode, add Nutanix color, and header links
1 parent 3106b2f commit 64f3c30

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'td/code-dark'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$primary: #7855FA;

docs/hugo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ anchor = "Smart"
3939
typographer = false
4040
[markup.goldmark.renderer]
4141
unsafe = true
42-
[markup.highlight]
42+
[markup.highlight]
43+
noClasses = false # Required for dark-mode
4344
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
44-
style = "tango"
45+
# style = "tango"
4546
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
4647
# guessSyntax = "true"
4748

@@ -97,7 +98,7 @@ offlineSearch = true
9798

9899
# Enable syntax highlighting and copy buttons on code blocks with Prism
99100
# Default "Chroma" syntax highlighter has no dot support, so use Prism instead
100-
prism_syntax_highlighting = true
101+
prism_syntax_highlighting = false
101102

102103
# User interface configuration
103104
[params.ui]
@@ -120,6 +121,8 @@ sidebar_menu_foldable = true
120121

121122
sidebar_cache_limit = 1000
122123

124+
showLightDarkModeMenu = true
125+
123126
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
124127
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.
125128
# If you want this feature, but occasionally need to remove the "Feedback" section from a single page,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ template "_default/_markup/td-render-heading.html" . }}

0 commit comments

Comments
 (0)