diff --git a/.forgejo/workflows/deploy-docs.yaml b/.forgejo/workflows/deploy-docs.yaml index ce7942c..63ac4b1 100644 --- a/.forgejo/workflows/deploy-docs.yaml +++ b/.forgejo/workflows/deploy-docs.yaml @@ -26,12 +26,14 @@ jobs: - name: Build website - prod if: github.event_name != 'pull_request' run: | + pnpm install pnpm build - name: Build website - staging if: github.event_name == 'pull_request' run: | - #sed -i "s#site_url: https://didays.de#site_url: https://staging.didays.de/pr${{ github.event.pull_request.number }}/#" mkdocs.yml + sed -i "s#base: '/'#base: '/pr${{ github.event.pull_request.number }}'#" astro.config.mjs + pnpm install pnpm build - name: Deploy - Prepare keys diff --git a/astro.config.mjs b/astro.config.mjs index cb49ffc..5075a9f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,5 +10,6 @@ export default defineConfig({ }, vite: { plugins: [tailwindcss()] - } + }, + base: '/' }); \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 100b037..da0d29d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -66,7 +66,7 @@ import {Calendar, ChevronDown} from "@lucide/astro" Office-Programm, oder die eigene Cloud.

Wenn ihr euch mit eurer Stadtteil-Initiative, Computer-Stammtisch oder Aktivisty-Gruppe an den DIDAYS beteiligen möchtet, dann schaut - doch in unsere Einladung an Gruppen. + doch in unsere Einladung an Gruppen. Wir freuen uns auf die Zusammenarbeit!