This is the source for the Diva.js documentation website, built with Hugo.
Install Hugo (extended version recommended):
# macOS
brew install hugo
# Or download from https://gohugo.io/installation/Run the development server:
hugo server -DThe site will be available at http://localhost:1313/
Build the static site:
cd website
hugoThe output will be in the public/ directory.
The site is automatically deployed to GitHub Pages when changes are pushed to the gh-pages branch. The deployment is handled by the GitHub Actions workflow in .github/workflows/hugo.yml.
website/
├── archetypes/ # Content templates
├── content/ # Markdown content
│ ├── docs/ # Documentation pages
│ └── examples/ # Example implementations
├── layouts/ # HTML templates
│ ├── _default/ # Default templates
│ ├── partials/ # Reusable template parts
│ └── index.html # Home page template
├── static/ # Static assets (CSS, JS, images)
└── hugo.toml # Hugo configuration
hugo new docs/my-page.mdhugo new examples/my-example.mdEdit the generated file and set draft: false when ready to publish.