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
610module . 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 : / \. a s m $ / } ) ,
@@ -72,5 +76,5 @@ module.exports = {
7276 } ,
7377 } ,
7478 } ,
75- } ,
79+ } ) ,
7680}
0 commit comments