Contribute to the Website¶
This guide provides step-by-step instructions for contributing to the ZOO-Project website using the Hugo static site generator.
Repository Location¶
The source code for the website is hosted on GitHub:
https://github.com/ZOO-Project/website
If you’re new to the project, this is where all the website content is managed. You will need to clone this repository and set it up locally before making any changes.
Cloning the Repository¶
To get started, clone the official repository and navigate into the project folder:
git clone https://github.com/ZOO-Project/website.git
cd website
Installing Hugo¶
The website uses Hugo, a fast static site generator written in Go. You must install Hugo on your system.
Install Hugo by following instructions here: https://gohugo.io/getting-started/installing/
To check if Hugo was installed successfully, run:
hugo version
Running the Website Locally¶
To preview the website locally before committing changes:
hugo server
Then open your browser at http://localhost:8080/ to see the live site.
Creating a New Page¶
To create a new page in the documentation:
Navigate to the content directory of the Hugo project.
Identify the appropriate section where the new page should be added.
Run the following command to generate a new Markdown file:
hugo new docs/new-page.md
Open the newly created file in a text editor and add relevant content following Hugo’s Markdown syntax.
Ensure the front matter (YAML, TOML, or JSON format) contains necessary metadata, e.g.:
--- title: "New Page Title" date: 2025-03-11 description: "A brief description of the new page." draft: false ---
Save the file and preview changes using:
hugo server --buildDrafts
Updating an Existing Page¶
To modify an existing page:
Locate the page inside the content directory.
Open the file and make necessary changes.
Save the file and verify the updates using:
hugo server
When you’re satisfied, commit and push your changes:
git add content/docs/updated-page.md git commit -m "Updated documentation" git push origin main