From ec418041ec6ea0f746a3ab4b61919052203ed3f1 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 6 Nov 2023 14:44:30 +0100 Subject: [PATCH] define github specific config to deploy on a subpath and correc workflow --- .github/workflows/vuepress-deploy.yml | 3 +-- docs/.vuepress/config.github.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 docs/.vuepress/config.github.js diff --git a/.github/workflows/vuepress-deploy.yml b/.github/workflows/vuepress-deploy.yml index 57a035f..7acfe29 100644 --- a/.github/workflows/vuepress-deploy.yml +++ b/.github/workflows/vuepress-deploy.yml @@ -18,6 +18,5 @@ jobs: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} TARGET_REPO: IT4Change/IT4C.dev TARGET_BRANCH: gh-pages - BUILD_SCRIPT: npm install && npm run build-node16 + BUILD_SCRIPT: npm install && npm run build-node16 -- --config docs/.vuepress/config github.js BUILD_DIR: docs/.vuepress/dist - CNAME: https://it4change.github.io/IT4C.dev/ diff --git a/docs/.vuepress/config.github.js b/docs/.vuepress/config.github.js new file mode 100644 index 0000000..80ed2c0 --- /dev/null +++ b/docs/.vuepress/config.github.js @@ -0,0 +1,11 @@ +import { defineUserConfig } from 'vuepress' +import meta from './config/meta' +import theme from './config/theme' +import plugins from './config/plugins' + +export default defineUserConfig({ + base: "/IT4C.dev/", + ...meta, + theme, + plugins, +})