Skip to content

Commit 6e648df

Browse files
committed
updated documentation deployment
1 parent 4ebaf86 commit 6e648df

File tree

4 files changed

+58
-3
lines changed

4 files changed

+58
-3
lines changed

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
- name: 'Install dependencies'
1919
run: npm -v && npm install
2020
- name: 'Build documentation'
21-
run: npm run docs:build
21+
run: npm run docs:prod
2222
- name: 'Deploy to GitHub-Pages'
2323
uses: JamesIves/github-pages-deploy-action@releases/v3
2424
with:
2525
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
26-
BRANCH: gh-pages
26+
BRANCH: gh-pages
2727
FOLDER: Documentation/.vuepress/dist

Documentation/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
title: 'Neos Backups',
3+
base: process.env.NODE_ENV === 'production'? '/neos-backups/': '/',
34
themeConfig: {
45
nav: [
56
{text: 'Github', link: 'https://github.com/breadlesscode/neos-backups'}

package-lock.json

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"scripts": {
66
"docs:dev": "vuepress dev Documentation",
7-
"docs:build": "vuepress build Documentation"
7+
"docs:build": "vuepress build Documentation",
8+
"docs:prod": "cross-env NODE_ENV=production vuepress build Documentation"
89
},
910
"keywords": [
1011
"backups",
@@ -14,6 +15,7 @@
1415
"author": "Marvin Kuhn",
1516
"license": "MIT",
1617
"devDependencies": {
18+
"cross-env": "^6.0.3",
1719
"vuepress": "^1.2.0"
1820
}
1921
}

0 commit comments

Comments
 (0)