Skip to content

Commit fc5213c

Browse files
authored
docs: Enable dark mode, add Nutanix color, and header links (#915)
**What problem does this PR solve?**: Add dark mode to docs just to be cool 😎 <img width="1701" alt="image" src="https://github.com/user-attachments/assets/ac41a749-982a-4206-941f-2b83f94d4d9d"> <img width="1689" alt="image" src="https://github.com/user-attachments/assets/ef9c888e-f019-4bb0-a8a9-2065782ab0c4"> **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. -->
1 parent a85f32f commit fc5213c

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

docs/assets/scss/_styles_project.scss

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)