Skip to content

Commit 49783b3

Browse files
committed
vuepress: migrate to 2.0.0-beta.60
1 parent beea81b commit 49783b3

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
},
1717
"homepage": "https://gbdev.io",
1818
"devDependencies": {
19-
"@vuepress/plugin-shiki": "^2.0.0-beta.32",
2019
"vite-raw-plugin": "^1.0.1",
21-
"vue-inline-svg": "^3.1.0",
22-
"vuepress": "^2.0.0-beta.32"
20+
"vue-inline-svg": "^2.1.3",
21+
"vuepress": "^2.0.0-beta.60",
22+
"vuepress-plugin-shiki": "^0.14.1"
2323
}
2424
}

website/.vuepress/config.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
// .vuepress/config.js
22

3-
const { path } = require("@vuepress/utils");
4-
const markdownRawPlugin = require('vite-raw-plugin');
3+
//const { path } = require("@vuepress/utils");
4+
5+
import markdownRawPlugin from 'vite-raw-plugin';
6+
import { defaultTheme } from 'vuepress'
7+
import { viteBundler } from 'vuepress'
8+
import shiki from 'vuepress-plugin-shiki'
59

610
module.exports = {
711
plugins: [
8-
['@vuepress/plugin-shiki', { 'langs': ['asm'] }],
12+
shiki({ 'langs': ['asm'] }),
913
],
1014
title: 'gbdev',
1115
description: 'game boy development scene',
@@ -19,13 +23,14 @@ module.exports = {
1923
['meta', { name: 'og:image', content : 'https://gbdev.io/images/gbinternals.png'}]
2024
],
2125
//base: "/list",
22-
themeConfig: {
26+
theme: defaultTheme({
2327
lastUpdated: false,
2428
contributors: false,
2529
editLink: true,
2630
docsRepo: "https://github.com/gbdev/gbdev.github.io",
2731
docsBranch: "dev",
2832
docsDir: "website",
33+
footer: 'test',
2934
navbar: [
3035
{ link: 'https://hh.gbdev.io', text: 'Games' },
3136
{ link: 'https://gbdev.io/pandocs', text: 'Pan Docs' },
@@ -58,10 +63,9 @@ module.exports = {
5863
]
5964
}
6065
]
61-
},
66+
}),
6267

63-
bundler: '@vuepress/bundler-vite',
64-
bundlerConfig: {
68+
bundler: viteBundler({
6569
viteOptions: {
6670
plugins: [
6771
markdownRawPlugin({ fileRegex: /\.asm$/ }),
@@ -72,5 +76,5 @@ module.exports = {
7276
},
7377
},
7478
},
75-
},
79+
}),
7680
}

0 commit comments

Comments
 (0)