Skip to content

DDMAL/diva.simssa.ca

Repository files navigation

Diva.js Website

This is the source for the Diva.js documentation website, built with Hugo.

Development

Prerequisites

Install Hugo (extended version recommended):

# macOS
brew install hugo

# Or download from https://gohugo.io/installation/

Local Development

Run the development server:

hugo server -D

The site will be available at http://localhost:1313/

Building

Build the static site:

cd website
hugo

The output will be in the public/ directory.

Deployment

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.

Structure

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

Adding Content

New documentation page

hugo new docs/my-page.md

New example

hugo new examples/my-example.md

Edit the generated file and set draft: false when ready to publish.

About

The Diva.js Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors