Attempt to fix vuepress site

master
Daniel Lovell 2024-09-30 02:26:02 -07:00
parent 4882caea45
commit 4fb40a2bc6
4 changed files with 42 additions and 29 deletions

View File

@ -25,10 +25,10 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18' # Updated to Node.js 18
- name: Install dependencies
run: npm install
run: npm ci
working-directory: './docs'
- name: Build documentation

3
docs/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
node_modules/
package-lock.json
.vuepress/dist/

View File

@ -1,7 +1,10 @@
module.exports = {
module.exports = async () => {
const { viteBundler } = await import('@vuepress/bundler-vite')
return {
title : 'Micromissiles Unity Project',
description : 'Documentation for the Micromissiles Unity project',
base : '/micromissiles-unity/',
base : './',
themeConfig : {
navbar :
[
@ -20,6 +23,10 @@ module.exports = {
],
sidebar : 'auto',
},
bundler: viteBundler(),
public: '../images',
// Add this to ensure INDEX.md is used as the home page
patterns : ['INDEX.md', '**/*.md', '**/*.vue'],
}
}

View File

@ -3,7 +3,10 @@
"docs:dev": "vuepress dev .",
"docs:build": "vuepress build ."
},
"dependencies": {
"vuepress": "^1.9.10"
},
"devDependencies": {
"vuepress": "^2.0.0-beta.51"
"@vuepress/bundler-vite": "^2.0.0-rc.16"
}
}