From b0ef9a44c279d9c8e5682dab494de179e4cabec1 Mon Sep 17 00:00:00 2001 From: Brian Bollen Date: Fri, 13 Sep 2024 11:02:18 -0600 Subject: [PATCH] Added change for updating baseUrl before deploying --- .github/workflows/deploy-to-pages.yml | 7 +++++++ apps/docs-website/docusaurus.config.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-pages.yml b/.github/workflows/deploy-to-pages.yml index 5acb39db..6ddad521 100644 --- a/.github/workflows/deploy-to-pages.yml +++ b/.github/workflows/deploy-to-pages.yml @@ -24,6 +24,13 @@ jobs: working-directory: ./apps/docs-website # Change this to your Docusaurus directory run: yarn install + # Make versioning stuff here + + - name: Update baseURL + working-directory: ./apps/docs-website + run: | + sed -i 's/baseUrl: "\/"/baseUrl: "\/loonar\//g' docusaurus.config.ts + # Build the Docusaurus site - name: Build Docusaurus working-directory: ./apps/docs-website # Change this to your Docusaurus directory diff --git a/apps/docs-website/docusaurus.config.ts b/apps/docs-website/docusaurus.config.ts index 27f56ddf..16dfa57d 100644 --- a/apps/docs-website/docusaurus.config.ts +++ b/apps/docs-website/docusaurus.config.ts @@ -11,7 +11,7 @@ const config: Config = { url: "https://your-docusaurus-site.example.com", // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: "/loonar/", + baseUrl: "/", // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these.