Check the config reference pages against config.json when the docs build

This commit is contained in:
Alan Grainger
2026-10-08 21:52:34 +13:00
parent 360c46fbc8
commit 19e10337b8
12 changed files with 656 additions and 35 deletions
+5
View File
@@ -1,4 +1,5 @@
import { defineConfigWithTheme, type DefaultTheme } from 'vitepress'
import { configSchemaPlugin } from './configSchema'
const REPO_URL = 'https://github.com/alangrainger/immich-public-proxy'
@@ -43,6 +44,10 @@ export default async () => defineConfigWithTheme<ThemeConfig>({
head: [
['link', { rel: 'icon', href: '/ipp.svg' }]
],
vite: {
// Fails the build when the config reference pages and the default config files disagree
plugins: [configSchemaPlugin()]
},
themeConfig: {
logo: '/ipp.svg',
stars: await fetchStars(),