Technical documentation for services made available by geo.admin.ch.
To build and run the site locally:
- Make sure Node.js v18 or higher is installed (
node -v
) - Install VitePress following the setup guide.
- Optional: Activate a suitable Node version, e.g. with
nvm use stable
ℹ️ Usenvm list
to see all available Node versions - Run
npm install
to locally install all the necessary packages - Run
npm run docs:dev
and visit http://localhost:5173/ in your web browser
To add a release note, follow these steps:
-
Navigate to the
.releases/
folder in the project directory. -
Create a new file with the following naming convention:
YYYYMMDD.md
(e.g.,20250514.md
). -
Add the following header to the file:
--- title: YYYYMMDD date: Day, Month DDth YYYY ---
Replace
YYYYMMDD
with the release date, and update thedate
field with the full date in a human-readable format. -
Add the markdown content for the release note below the header.
-
(Optional) If you do not want the release note to appear in the sidebar menu, add the following variable to the header:
ignoreSideBar: true
-
Save the file and commit your changes.
-
To edit the status page preview, use the following variables located in the
status.md
file:previewType: "info" previewTitle: "Issues in services" previewContent: "Our systems are experiencing issues"
-
Update the
previewType
variable to one of the following values based on the desired message typeinfo
,warning
ordanger
:::: info This is an info box. :::
::: warning This is a warning. :::
::: danger This is a dangerous warning. :::
-
Save the file and commit your changes.
- To edit the Product Retirements preview, use the following variables located in the
product-retirements.md
file:previewTitle: "Decomissioning of legacy vectortile styles / tiles" previewContent: "Old styles for Light Base Map and Imagery Base Map no longer available from January 2025"
- Save the file and commit your changes.