From 217c0ac381cda421184b032d96eef8477f966f3c Mon Sep 17 00:00:00 2001 From: Pedro Soares Date: Thu, 23 Oct 2025 21:29:48 +0200 Subject: [PATCH 1/2] fix status page title and add noindex meta tag --- .vitepress/config.mts | 18 ++++++++++-------- page/status-page.md | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 53909b1..a962cfb 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -14,14 +14,16 @@ export default defineConfig({ https://sys-docs.dev.bgdi.ch/preview/feat-pb-1234-my-branch/index.html */ - base: process.env.VITE_BASE_URL || '/', - head: [['link', { rel: 'icon', href: '/favicon.ico' }]], - ignoreDeadLinks: 'localhostLinks', - vite: { - build: { - // We add this to avoid the warning "(!) Some chunks are larger than 500 kB after minification." - chunkSizeWarningLimit: 1000, - }, + base: process.env.VITE_BASE_URL || "/", + head: [ + ["link", { rel: "icon", href: "/favicon.ico" }], + ["meta", { name: "robots", content: "noindex" }], + ], + ignoreDeadLinks: "localhostLinks", + vite: { + build: { + // We add this to avoid the warning "(!) Some chunks are larger than 500 kB after minification." + chunkSizeWarningLimit: 1000, }, themeConfig: { // https://vitepress.dev/reference/default-theme-config diff --git a/page/status-page.md b/page/status-page.md index 896e3ad..2ce40ff 100644 --- a/page/status-page.md +++ b/page/status-page.md @@ -40,7 +40,7 @@ This page provides the latest status updates for all \*.geo.admin.ch web service 'warning': '⚠️', 'danger': '🚨' }[$frontmatter.type] || '' -}} **{{ $frontmatter.title }}**: {{ $frontmatter.content }} +}} **{{ $frontmatter.previewTitle }}**: {{ $frontmatter.content }} ## Incident History From 5c15818390a6104e3e78ae4964d7cc088c501686 Mon Sep 17 00:00:00 2001 From: Pedro Soares Date: Tue, 28 Oct 2025 15:41:46 +0100 Subject: [PATCH 2/2] rebase with master branch --- .vitepress/config.mts | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index a962cfb..ef186d9 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -7,23 +7,24 @@ export default defineConfig({ description: 'Technical Documentation about *.geo.admin.ch', /* Prepend a base path such that links still work when the page is built for the - preview in a PR ("test link" in the PR description). + preview in a PR ('test link' in the PR description). - For example, VITE_BASE_URL would be set to "/preview/feat-pb-1234-my-branch/" + For example, VITE_BASE_URL would be set to '/preview/feat-pb-1234-my-branch/' for a link like this: https://sys-docs.dev.bgdi.ch/preview/feat-pb-1234-my-branch/index.html */ - base: process.env.VITE_BASE_URL || "/", - head: [ - ["link", { rel: "icon", href: "/favicon.ico" }], - ["meta", { name: "robots", content: "noindex" }], - ], - ignoreDeadLinks: "localhostLinks", - vite: { - build: { - // We add this to avoid the warning "(!) Some chunks are larger than 500 kB after minification." - chunkSizeWarningLimit: 1000, + base: process.env.VITE_BASE_URL || '/', + head: [ + ['link', { rel: 'icon', href: '/favicon.ico' }], + ['meta', { name: 'robots', content: 'noindex' }], + ], + ignoreDeadLinks: 'localhostLinks', + vite: { + build: { + // We add this to avoid the warning '(!) Some chunks are larger than 500 kB after minification.' + chunkSizeWarningLimit: 1000, + }, }, themeConfig: { // https://vitepress.dev/reference/default-theme-config