Contribute
This hub is a set of Markdown files in the unil-sgc.github.io repository, built with VitePress and published on GitHub Pages. Anyone with a GitHub account can propose a change.
Edit a page
- Click Edit this page on GitHub at the bottom of any page.
- Make your change in the GitHub editor and open a pull request.
- The pull request builds the site. Once it is merged into
main, the site is deployed within a few minutes.
Pages live in the docs/ folder. The folder structure gives the URL: docs/data/catalogues.md is served at /data/catalogues.
Add a news item or an event
Create a Markdown file in docs/news/ or docs/events/. The file name becomes the URL. Start it with this front matter, then write the content:
---
title: "SGC symposium 2026"
date: 2026-11-21
author: "Jane Doe"
tags: ["Event"]
---
# SGC symposium 2026
Content in Markdown ...The listing pages and the sidebar are generated from these files, so there is nothing else to update. Images go in docs/public/images/ and are referenced as /images/my-image.png.
Update the shared datasets list
The Shared datasets page is generated from the README of the FGSE folder on the /reference partition of Curnagl. That file is the source of truth: edit it on the cluster, not on the website.
On Curnagl, edit
/reference/FGSE/README_FGSE.md. The page reads its Markdown table by column name:Folder Namebecomes the title,Descriptionthe text andGroupthe badge. TheContactcolumn stays on the cluster and is never published.From a machine that can
sshto Curnagl, with the repository checked out onmain, run:shscripts/sync-reference-readme.sh # or: scripts/sync-reference-readme.sh user@curnaglIt copies the README to
reference/README_FGSE.md, then commits and pushes if it changed. The site redeploys within a few minutes. There is nothing else to edit.
There is no automatic sync: run the script whenever the README changes.
Useful Markdown extras
VitePress supports GitHub-flavoured Markdown plus a few extras:
::: tip Title
A highlighted note. Also available: info, warning, danger, details.
:::
:coffee: emoji shortcodes work, and so do tables and footnotes.See the VitePress Markdown reference for the full list.
A thin decorative banner under a page title is one line, with an optional dark-mode variant:
<PageBanner light="/images/my-banner-light.webp" dark="/images/my-banner-dark.webp" alt="What the picture shows" />A grid of cards, as on the Compute, Data and Software pages, is a list in the front matter plus one line in the page. icon, badge and link are optional:
---
title: Compute
resources:
- icon: 🐙
title: Octopus
badge: [FGSE, GPU]
details: The faculty's own GPU cluster.
link: /compute/octopus
---
<ResourceCards />A page with several grids names its lists and passes each one explicitly, as in <ResourceCards :items="$frontmatter.repos" />.
Raw HTML is allowed too, with two rules: leave a blank line before and after an HTML block, and avoid deprecated tags such as <center>, which the renderer silently drops. For images, prefer the Markdown syntax .
Preview locally
Optional, for larger changes. You need Node.js 22 or newer; a version manager such as fnm or nvm installs it in your home directory without administrator rights and picks up the version from the .nvmrc file of the repository.
git clone https://github.com/Unil-SGC/unil-sgc.github.io
cd unil-sgc.github.io
npm install
npm run docs:devThen open http://localhost:5173. Pages reload as you save. npm run docs:build runs the same build as the deployment and fails on broken internal links.
Site structure
docs/.vitepress/config.mts: navigation, sidebar and site options.docs/.vitepress/theme/: small theme customisations (colours, post metadata, post lists, resource cards).docs/public/: static files copied as they are (images, favicons, redirects for old URLs).reference/README_FGSE.md: copy of the datasets README on Curnagl. The Shared datasets page is generated from its table; refresh it withscripts/sync-reference-readme.sh..github/workflows/deploy.yml: build on pull requests, build and deploy onmain.
