This project contains the sources and content for the C2 Platform website.

GitLab: c2platform/website 

Pipeline Status Latest Release

This project contains the sources and content for the website at  . This project uses Hugo  with the Docsy Theme  . This project is created as a copy of the Docsy Example  project.

You can find detailed theme instructions in the Docsy user guide  .


The CI/CD pipeline currently builds two versions of the website:

  1. A development version on development branch will be published to 
  2. The production version on master branch is published to 

Running the website locally

Building and running the site locally requires a recent extended version of Hugo  .

sudo apt install snapd -y
sudo snap install hugo
curl -o- 

 | bash
nano ~/.bashrc
source ~/.bashrc
nvm install 18
git clone
cd website
npm install

Once you’ve made your working copy of the site repo, from the repo root folder, run:

hugo server

Note: the hugo snap alone is not enough. Without npm install you will get an error message:

Error: error building site: POSTCSS: failed to transform “css/search.css” (text/css). Check your PostCSS installation; install with “npm install postcss-cli”. See  this feature is not available in your current Hugo version, see  for more information

You can find out more about how to install Hugo for your environment in our Getting started  guide.

Running a container locally

Alternatively you can run this website inside a Docker  container, the container runs with a volume bound to the docsy-example folder. This approach doesn’t require you to install any dependencies other than podman.

sudo apt install podman -y

After that, you can run

podman run --rm -it   -v $(pwd):/src   -p 1313:1313   server

For more information see the Docker Compose documentation  . To stop the container, on your terminal window, press Ctrl + C.

Verify that the service is working.

Open your web browser and type http://localhost:1313 in your navigation bar. You can now make changes to the website content and those changes will immediately show up in your browser after you save.

PlantUML support

PlantUML diagrams are supported in website by adding Hugo Shortcode  file layouts/shortcodes/plantuml.html  and Javascript library static/js/rawdeflate.js  downloaded from johan/js-deflate  .

Validate HTML pre-commit

rm -rf public || true
cd public
find . -name "*.html" -type f -exec sed -i -E 's/(<[^>]* id="plantuml-[^"]*")(.*?>)/\1 data-proofer-ignore\2/g' {} \;
find . -name "*.html" -type f -exec sed -i 's/<a class="td-offset-anchor"><\/a>/<a class="td-offset-anchor" data-proofer-ignore><\/a>/g' {} \;
htmlproofer --allow-missing-href --ignore-empty-alt --ignore-missing-alt --no-enforce-https 2>&1 | tee ../htmlproofer.log
if grep -q "following failures were found" ../htmlproofer.log; then
    echo "Failures found. Exiting."
    exit 1

Test on GitLab Runner

docker run --rm -i -v $(pwd):/src ${IMAGE_HTMLPROOFER} --allow-missing-href --ignore-empty-alt --ignore-missing-alt --no-enforce-https 2>&1 | tee ../htmlproofer.log


Via Ctrl+Space access markdown snippets like relref, and external-link. See markdown.code-snippets 


See Docsy Example  project.