Attempt to fix vuepress site
parent
4882caea45
commit
4fb40a2bc6
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
node_modules/
|
||||
package-lock.json
|
||||
.vuepress/dist/
|
|
@ -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'],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue