Skip to content

Commit

Permalink
Attempt to fix vuepress site
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellovell committed Sep 30, 2024
1 parent 4882cae commit 4fb40a2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
package-lock.json
.vuepress/dist/
57 changes: 32 additions & 25 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
module.exports = {
title : 'Micromissiles Unity Project',
description : 'Documentation for the Micromissiles Unity project',
base : '/micromissiles-unity/',
themeConfig : {
navbar :
[
{text : 'Home', link : '/'}, {
text : 'Keybinds and Controls',
link : '/Keybinds_and_Controls.html'
},
{
text : 'Simulation Configuration Guide',
link : '/Simulation_Config_Guide.html'
},
{text : 'Simulation Logging', link : '/Simulation_Logging.html'}, {
text : 'Coverage Reports',
link : '/coverage/'
}, // Link to coverage reports
],
sidebar : 'auto',
},
// Add this to ensure INDEX.md is used as the home page
patterns : ['INDEX.md', '**/*.md', '**/*.vue'],
}
module.exports = async () => {
const { viteBundler } = await import('@vuepress/bundler-vite')

return {
title : 'Micromissiles Unity Project',
description : 'Documentation for the Micromissiles Unity project',
base : './',
themeConfig : {
navbar :
[
{text : 'Home', link : '/'}, {
text : 'Keybinds and Controls',
link : '/Keybinds_and_Controls.html'
},
{
text : 'Simulation Configuration Guide',
link : '/Simulation_Config_Guide.html'
},
{text : 'Simulation Logging', link : '/Simulation_Logging.html'}, {
text : 'Coverage Reports',
link : '/coverage/'
}, // Link to coverage reports
],
sidebar : 'auto',
},
bundler: viteBundler(),
public: '../images',
// Add this to ensure INDEX.md is used as the home page
patterns : ['INDEX.md', '**/*.md', '**/*.vue'],
}
}

7 changes: 5 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

0 comments on commit 4fb40a2

Please sign in to comment.