diff --git a/content/.vitepress/config.js b/content/.vitepress/config.js index ae77fd2..d495e91 100644 --- a/content/.vitepress/config.js +++ b/content/.vitepress/config.js @@ -1,5 +1,6 @@ +import { fileURLToPath } from 'url'; import { defineConfig } from 'vitepress'; -import footnote from 'markdown-it-footnote' +import footnote from 'markdown-it-footnote'; export default defineConfig({ title: 'HPG Romein', @@ -59,4 +60,14 @@ export default defineConfig({ md.use(footnote); }, }, + + vite: { + resolve: { + alias: [ + { find: /^.*\/VPDocFooter\.vue$/, + replacement: fileURLToPath(new URL('./theme/VPDocFooter.vue', import.meta.url)), + }, + ], + }, + }, }); diff --git a/content/.vitepress/theme/VPDocFooter.vue b/content/.vitepress/theme/VPDocFooter.vue new file mode 100644 index 0000000..8e5d406 --- /dev/null +++ b/content/.vitepress/theme/VPDocFooter.vue @@ -0,0 +1,180 @@ + + + + + diff --git a/content/.vitepress/theme/index.js b/content/.vitepress/theme/index.js index 149273e..8d3c99d 100644 --- a/content/.vitepress/theme/index.js +++ b/content/.vitepress/theme/index.js @@ -1,4 +1,7 @@ import DefaultTheme from 'vitepress/theme'; import './custom.css'; -export default DefaultTheme; +/** @type {import('vitepress').Theme} */ +export default { + extends: DefaultTheme, +}; diff --git a/package-lock.json b/package-lock.json index 89be9bf..7fe48c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,9 @@ "requires": true, "packages": { "": { + "dependencies": { + "canvas-confetti": "^1.9.3" + }, "devDependencies": { "@garraflavatra/yeslint": "^1.1.0", "eslint": "^8.57.0", @@ -1714,6 +1717,15 @@ "node": ">=6" } }, + "node_modules/canvas-confetti": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/canvas-confetti/-/canvas-confetti-1.9.3.tgz", + "integrity": "sha512-rFfTURMvmVEX1gyXFgn5QMn81bYk70qa0HLzcIOSVEyl57n6o9ItHeBtUSWdvKAPY0xlvBHno4/v3QPrT83q9g==", + "funding": { + "type": "donate", + "url": "https://www.paypal.me/kirilvatev" + } + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", diff --git a/package.json b/package.json index a6e2a12..6c28f62 100644 --- a/package.json +++ b/package.json @@ -17,5 +17,8 @@ "parserOptions": { "sourceType": "module" } + }, + "dependencies": { + "canvas-confetti": "^1.9.3" } }