diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 40af5c2..b02e2ab 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,4 +1,5 @@ -import { defineConfig } from 'vitepress' +import { fileURLToPath, URL } from 'node:url'; +import { defineConfig } from 'vitepress'; // https://vitepress.dev/reference/site-config export default defineConfig({ @@ -9,6 +10,18 @@ export default defineConfig({ ['link', { rel: 'icon', href: '/favicon.svg' }], ['meta', { property: 'og:image', content: 'https://fedecan.ca/img/social-share.png' }] ], + vite: { + resolve: { + alias: [ + { + find: /^.*\/VPFooter\.vue$/, + replacement: fileURLToPath( + new URL('./theme/components/overrides/VPFooter.vue', import.meta.url), + ), + } + ], + }, + }, cleanUrls: true, themeConfig: { // https://vitepress.dev/reference/default-theme-config @@ -55,10 +68,6 @@ export default defineConfig({ ], }, - footer: { - message: 'Uptime Status | GitHub Organization', - }, - logo: { light: '/img/icons/maple-leaf.svg', dark: '/img/icons/maple-leaf.svg'}, search: { diff --git a/docs/.vitepress/theme/components/overrides/VPFooter.vue b/docs/.vitepress/theme/components/overrides/VPFooter.vue new file mode 100644 index 0000000..21b4f9f --- /dev/null +++ b/docs/.vitepress/theme/components/overrides/VPFooter.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/package-lock.json b/package-lock.json index 9bdfb17..5334b90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,6 +6,7 @@ "": { "devDependencies": { "@iconify/vue": "^4.1.2", + "@types/node": "^20.14.11", "vitepress": "^1.2.3" } }, @@ -908,6 +909,15 @@ "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", "dev": true }, + "node_modules/@types/node": { + "version": "20.14.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.11.tgz", + "integrity": "sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, "node_modules/@types/web-bluetooth": { "version": "0.0.20", "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", @@ -1531,6 +1541,12 @@ "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==", "dev": true }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/vite": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/vite/-/vite-5.3.1.tgz", diff --git a/package.json b/package.json index a0b0d1b..4733279 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "devDependencies": { "@iconify/vue": "^4.1.2", + "@types/node": "^20.14.11", "vitepress": "^1.2.3" }, "scripts": {