User documentation for the Splunk Show platform — built with Hugo and the Relearn theme.
- Hugo Extended (v0.121.0 or later recommended)
- Git (for cloning and submodule management)
brew install hugoDownload from Hugo Releases
git clone --recurse-submodules https://github.com/splunk/splunk-show-docs.git
cd splunk-show-docsIf you already cloned without --recurse-submodules, initialize the theme:
git submodule update --init --recursivehugo serveThe site will be available at http://localhost:1313
The server watches for changes and automatically reloads the browser.
hugo serve -D # Include draft content
hugo serve --bind 0.0.0.0 # Allow access from other devices on your networkhugoOutput will be in the public/ directory.
splunk-show-docs/
├── config.yaml # Site configuration
├── content/ # Documentation pages (Markdown)
│ ├── _index.md # Homepage
│ ├── demos/ # Demo-related docs
│ ├── workshops/ # Workshop-related docs
│ └── ...
├── static/
│ ├── css/custom.css # Custom styles
│ └── images/ # Static images
├── assets/
│ └── css/ # Theme variant overrides
├── layouts/
│ └── partials/ # Custom partial templates
└── themes/
└── relearn/ # Hugo Relearn theme (git submodule)
Create a new .md file in the appropriate content/ subdirectory:
# Example: Add a new page under "demos"
touch content/demos/my-new-page.mdAdd frontmatter at the top:
+++
title = "My New Page"
weight = 10
+++
Your content here...- Create a new directory under
content/ - Add an
_index.mdfile with section frontmatter:
+++
title = "Section Title"
weight = 5
chapter = false
+++
Optional section description...Place images in static/images/ and reference them in Markdown:
The site includes three theme variants. Users can switch between them using the dropdown selector in the sidebar footer (built into the Relearn theme):
| Variant | Description |
|---|---|
| Auto | Follows system/OS preference |
| Light | Splunk light theme |
| Dark | Splunk dark theme |
| File | Purpose |
|---|---|
assets/css/theme-splunk-light.css |
Light theme CSS variables |
assets/css/theme-splunk-dark.css |
Dark theme CSS variables |
Theme variants are defined in config.yaml:
params:
themeVariant:
- identifier: "auto"
name: "Auto"
- identifier: "splunk-light"
name: "Light"
- identifier: "splunk-dark"
name: "Dark"