Skip to content

docs: Enable dark mode, add Nutanix color, and header links #915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'td/code-dark'
1 change: 1 addition & 0 deletions docs/assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$primary: #7855FA;
9 changes: 6 additions & 3 deletions docs/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ anchor = "Smart"
typographer = false
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
[markup.highlight]
noClasses = false # Required for dark-mode
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
style = "tango"
style = "tango"
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
# guessSyntax = "true"

Expand Down Expand Up @@ -97,7 +98,7 @@ offlineSearch = true

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

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

sidebar_cache_limit = 1000

showLightDarkModeMenu = true

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