Attempt to fix vuepress site
parent
4882caea45
commit
4fb40a2bc6
|
@ -25,10 +25,10 @@ jobs:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '18' # Updated to Node.js 18
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm ci
|
||||||
working-directory: './docs'
|
working-directory: './docs'
|
||||||
|
|
||||||
- name: Build documentation
|
- name: Build documentation
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
node_modules/
|
||||||
|
package-lock.json
|
||||||
|
.vuepress/dist/
|
|
@ -1,25 +1,32 @@
|
||||||
module.exports = {
|
module.exports = async () => {
|
||||||
title : 'Micromissiles Unity Project',
|
const { viteBundler } = await import('@vuepress/bundler-vite')
|
||||||
description : 'Documentation for the Micromissiles Unity project',
|
|
||||||
base : '/micromissiles-unity/',
|
return {
|
||||||
themeConfig : {
|
title : 'Micromissiles Unity Project',
|
||||||
navbar :
|
description : 'Documentation for the Micromissiles Unity project',
|
||||||
[
|
base : './',
|
||||||
{text : 'Home', link : '/'}, {
|
themeConfig : {
|
||||||
text : 'Keybinds and Controls',
|
navbar :
|
||||||
link : '/Keybinds_and_Controls.html'
|
[
|
||||||
},
|
{text : 'Home', link : '/'}, {
|
||||||
{
|
text : 'Keybinds and Controls',
|
||||||
text : 'Simulation Configuration Guide',
|
link : '/Keybinds_and_Controls.html'
|
||||||
link : '/Simulation_Config_Guide.html'
|
},
|
||||||
},
|
{
|
||||||
{text : 'Simulation Logging', link : '/Simulation_Logging.html'}, {
|
text : 'Simulation Configuration Guide',
|
||||||
text : 'Coverage Reports',
|
link : '/Simulation_Config_Guide.html'
|
||||||
link : '/coverage/'
|
},
|
||||||
}, // Link to coverage reports
|
{text : 'Simulation Logging', link : '/Simulation_Logging.html'}, {
|
||||||
],
|
text : 'Coverage Reports',
|
||||||
sidebar : 'auto',
|
link : '/coverage/'
|
||||||
},
|
}, // Link to coverage reports
|
||||||
// Add this to ensure INDEX.md is used as the home page
|
],
|
||||||
patterns : ['INDEX.md', '**/*.md', '**/*.vue'],
|
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:dev": "vuepress dev .",
|
||||||
"docs:build": "vuepress build ."
|
"docs:build": "vuepress build ."
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"vuepress": "^1.9.10"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vuepress": "^2.0.0-beta.51"
|
"@vuepress/bundler-vite": "^2.0.0-rc.16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue