From 23d7b958519b29d6098063a58f4551e68f3eee89 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Tue, 3 Oct 2023 22:27:05 -0500 Subject: [PATCH] Give docusaurus what it wants It appears that the docusaurus base url like to start with a `/` if present. --- .github/workflows/v2-docs.yaml | 8 ++++---- website/docusaurus.config.local.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/v2-docs.yaml b/.github/workflows/v2-docs.yaml index a7e381e58..217967523 100644 --- a/.github/workflows/v2-docs.yaml +++ b/.github/workflows/v2-docs.yaml @@ -22,10 +22,10 @@ jobs: - run: | cd website yarn install - yarn docusaurus build --config ./docusaurus.config.local.js --out-dir build/local - tar czvf ${{ github.ref_name }}.website.local.tgz -C build/local . - yarn docusaurus build --config ./docusaurus.config.prod.js --out-dir build/prod - tar czvf ${{ github.ref_name }}.website.prod.tgz -C build/prod . + yarn docusaurus build --config ./docusaurus.config.local.js --out-dir build/local/site + tar czvf ${{ github.ref_name }}.website.local.tgz -C build/local site + yarn docusaurus build --config ./docusaurus.config.prod.js --out-dir build/prod/site + tar czvf ${{ github.ref_name }}.website.prod.tgz -C build/prod site cp *.tgz .. - run: node -pe '`relnum=${"${{ github.ref_name }}".substring("docs-v2-r".length)}`' >> $GITHUB_OUTPUT diff --git a/website/docusaurus.config.local.js b/website/docusaurus.config.local.js index 93a11a5e0..6694d4db7 100644 --- a/website/docusaurus.config.local.js +++ b/website/docusaurus.config.local.js @@ -2,5 +2,5 @@ const base = require('./docusaurus.config'); module.exports = { ...base, - baseUrl: 'v2/', + baseUrl: '/v2/', }