diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index cd4229f..9ffacd6 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -7,7 +7,7 @@ name: Deploy Next.js site to Pages on: # Runs on pushes targeting the default branch push: - branches: ["develop"] + branches: ["feature/docs"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -79,6 +79,8 @@ jobs: run: npx @redocly/cli build-docs https://bitbucket.org/medicalinformatics/mainzelliste/raw/development/resources/Mainzelliste.OpenApi.Spec.yaml -o out/api-doc/index.html - name: add favicon to redoc page run: sed -i '7 i \ \ ' out/api-doc/index.html + - name: Build website + run: cd mainzelliste-doc && npm run build && mv build /out/docs - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/mainzelliste-doc/docusaurus.config.ts b/mainzelliste-doc/docusaurus.config.ts index 474943e..764fd2d 100644 --- a/mainzelliste-doc/docusaurus.config.ts +++ b/mainzelliste-doc/docusaurus.config.ts @@ -15,8 +15,10 @@ const config: Config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'Verbis', // Usually your GitHub org/user name. - projectName: 'Mainzelliste', // Usually your repo name. + organizationName: 'medicalinformatics', // Usually your GitHub org/user name. + projectName: 'mainzelliste.de', // Usually your repo name. + deploymentBranch: 'deploymentBranch', + trailingSlash: false, onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'throw', diff --git a/package.json b/package.json index 5869b3d..f65af0a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "postinstall": "cd mainzelliste-doc && npm ci" }, "dependencies": { "eslint": "^8.56.0",