This is the official documentation site for STING, built with Hugo and the Docsy theme.
- Powerful Search: Full-text search across all documentation
- Version Support: Version dropdown for maintaining docs for multiple versions
- Dark Mode: Light/dark theme toggle
- API Reference: Dedicated section for API documentation with code examples
- Responsive Design: Mobile-friendly documentation
- Fast Build Times: Hugo generates static HTML for blazing-fast page loads
To build the documentation site locally, you need:
-
Hugo Extended: v0.147.9 or later
# macOS brew install hugo # Linux snap install hugo
-
Go: v1.20 or later (required for Hugo Modules/Docsy theme)
# macOS brew install go # Linux sudo apt install golang-go
cd docs-siteHugo will automatically download the Docsy theme and dependencies on first build:
hugo mod get -u# Run with local baseURL override (fixes navigation)
hugo server -D --baseURL="http://localhost:1313/"The site will be available at http://localhost:1313/
Note: The --baseURL flag is required for local development because hugo.toml has the production GitHub Pages URL. This override ensures all navigation links work correctly on localhost.
The documentation is organized into the following sections:
content/en/
├── _index.md # Homepage
├── about/ # About STING
├── api/ # API Reference
│ ├── api-reference.md # Complete API reference
│ ├── honey-jar-bulk-api.md # Honey Jar bulk operations
│ ├── pii-detection-api.md # PII detection endpoints
│ └── public-bee-api.md # Public Bee API
└── docs/ # Main documentation
├── getting-started/ # Installation and setup
├── guides/ # Step-by-step tutorials
├── architecture/ # System architecture
├── features/ # Feature documentation
├── security/ # Security guides
├── deployment/ # Deployment guides
├── platform/ # Platform-specific docs
├── troubleshooting/ # Troubleshooting guides
└── development/ # Development guides
To sync documentation from the main STING repository:
./sync-docs.shThis script:
- Copies markdown files from
STING/docstodocs-site/content/en/ - Adds Hugo front matter if not present
- Organizes content by category
hugo new content/en/docs/guides/my-new-guide.mdEvery page should have Hugo front matter:
---
title: "Page Title"
linkTitle: "Short Title"
weight: 10
description: >
Brief description of the page content
---Use standard Markdown with Hugo shortcodes for enhanced functionality:
# My Page Title
Content goes here...
## Code Examples
\`\`\`bash
./manage_sting.sh start
\`\`\`
## Important Notes
{{< alert title="Note" >}}
This is an important callout.
{{< /alert >}}hugo --gc --minifyThe site will be built to the public/ directory.
The site is automatically deployed to GitHub Pages on every push to main via GitHub Actions.
- Go to repository Settings → Pages
- Set Source to "GitHub Actions"
- Push to
mainbranch - the workflow will automatically deploy
The GitHub Actions workflow is defined in .github/workflows/hugo.yml.
Main configuration is in hugo.toml. Key settings:
baseURL = "https://AlphaBytez.github.io/STING-CE-Docs/"
title = "STING Documentation"
# Enable search
[params]
offlineSearch = true
# Version dropdown
[[params.versions]]
version = "v1.0 (latest)"
url = "https://AlphaBytez.github.io/STING-CE-Docs/"Search is enabled via offline/local search (Lunr.js). The search index is automatically generated during build.
To use Algolia DocSearch instead:
- Get Algolia DocSearch API keys
- Update
hugo.toml:[params.search.algolia] appId = "YOUR_APP_ID" apiKey = "YOUR_SEARCH_KEY" indexName = "sting-docs"
To add a new version:
-
Update
hugo.toml:[[params.versions]] version = "v2.0" url = "https://AlphaBytez.github.io/sting-docs/v2.0/"
-
Create version-specific content in
content/en/v2.0/
"Module not found"
hugo mod get -u
hugo mod tidy"Go not found"
# Install Go (required for Docsy theme)
brew install go # macOSSite not loading at localhost
- Check that Hugo server is running
- Use
--baseURL="http://localhost:1313/"flag to override production URL
Changes not appearing
# Clear Hugo cache
hugo --gcTo contribute documentation:
- Fork the repository
- Create a new branch
- Add/edit documentation
- Test locally with
hugo server - Submit a pull request
This documentation site was built with the assistance of:
- Claude Code by Anthropic - AI-powered development assistant that helped with:
- Documentation structure and organization
- Grammar and punctuation review across 125+ files
- Visual theme customization and debugging
- GitHub Actions workflow configuration
- Quality assurance and redundancy analysis
Special thanks to the open-source community and the tools that made this possible:
- Hugo static site generator
- Docsy documentation theme
- GitHub Pages for hosting
This documentation is licensed under the Apache License 2.0, the same as the STING project.
- General inquiries: olliec@alphabytez.dev
- Documentation issues: Open an issue
- Main STING repo: https://github.com/AlphaBytez/STING-CE-Public
