From 66203125ba6a4ab8874a6336ea13c4e84abd9dd6 Mon Sep 17 00:00:00 2001 From: Milana Cap Date: Thu, 30 Apr 2026 22:20:54 +0200 Subject: [PATCH 1/7] Testing deploy. Signed-off-by: Milana Cap --- docs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package.json b/docs/package.json index 7d47d9d..fd61714 100644 --- a/docs/package.json +++ b/docs/package.json @@ -7,7 +7,7 @@ "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", - "deploy": "docusaurus deploy", + "deploy": "echo docs.fair.pm > build/CNAME && docusaurus deploy", "clear": "docusaurus clear", "serve": "docusaurus serve", "write-translations": "docusaurus write-translations", From 21d311566987bd1fdd4d508261d960c8dd91e1dd Mon Sep 17 00:00:00 2001 From: Milana Cap Date: Thu, 30 Apr 2026 22:27:52 +0200 Subject: [PATCH 2/7] Trying to get build files deployed instead of src. Signed-off-by: Milana Cap --- .github/workflows/deploy.yml | 2 +- docs/docusaurus.config.js | 9 +++++++-- docs/package.json | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4d63e2d..e04c00f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,7 +34,7 @@ jobs: - name: Upload Build Artifact uses: actions/upload-pages-artifact@v3 with: - path: docs/build + path: build deploy: name: Deploy to GitHub Pages diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 0ef55be..9aac9b5 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -20,10 +20,14 @@ const config = { }, // Set the production url of your site here - url: 'https://docs.fair.pm', + // url: 'https://docs.fair.pm', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/', + // baseUrl: '/', + + // Trying to get build instead of src + url: 'https://fairpm.github.io/', + baseUrl: '/docs/', // GitHub pages deployment config. organizationName: 'fairpm', @@ -32,6 +36,7 @@ const config = { onBrokenLinks: 'throw', + // Even if you don't use internationalization, you can use this field to set // useful metadata like html lang. For example, if your site is Chinese, you // may want to replace "en" with "zh-Hans". diff --git a/docs/package.json b/docs/package.json index fd61714..7d47d9d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -7,7 +7,7 @@ "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", - "deploy": "echo docs.fair.pm > build/CNAME && docusaurus deploy", + "deploy": "docusaurus deploy", "clear": "docusaurus clear", "serve": "docusaurus serve", "write-translations": "docusaurus write-translations", From 8aa5174e45d71a4f69c667a3f082bc37537eff61 Mon Sep 17 00:00:00 2001 From: Milana Cap Date: Thu, 30 Apr 2026 22:30:49 +0200 Subject: [PATCH 3/7] Allow broken links but log. Signed-off-by: Milana Cap --- docs/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 9aac9b5..3111f8d 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -34,7 +34,7 @@ const config = { projectName: 'docs', deploymentBranch: 'gh-pages', - onBrokenLinks: 'throw', + onBrokenLinks: 'log', // Even if you don't use internationalization, you can use this field to set From 9a512b8b260d4182188308188c4ab1a48fbe9b22 Mon Sep 17 00:00:00 2001 From: Milana Cap Date: Thu, 30 Apr 2026 22:35:39 +0200 Subject: [PATCH 4/7] Trying to fix broken link. Signed-off-by: Milana Cap --- docs/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 3111f8d..9de6717 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -108,7 +108,7 @@ const config = { items: [ { label: 'Tutorial', - to: '/docs/intro', + to: '/docs/', }, ], }, From bcee5513905befbe0bf4dd4b8547cad5eba5aef1 Mon Sep 17 00:00:00 2001 From: Milana Cap Date: Thu, 30 Apr 2026 22:36:44 +0200 Subject: [PATCH 5/7] Trying to fix broken link. Signed-off-by: Milana Cap --- docs/src/pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index a8c61f2..809a832 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -19,7 +19,7 @@ function HomepageHeader() {
+ to="/docs/"> Docusaurus Tutorial - 5min ⏱️
From d604886243d1a81dda7a152ece0fc94c4ccf3d78 Mon Sep 17 00:00:00 2001 From: Milana Cap Date: Thu, 30 Apr 2026 22:51:13 +0200 Subject: [PATCH 6/7] Moved CNAME to static, so it gets into build as well. Signed-off-by: Milana Cap --- docs/docusaurus.config.js | 10 +++++----- docs/{ => static}/CNAME | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename docs/{ => static}/CNAME (100%) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 9de6717..cfe66d5 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -20,14 +20,14 @@ const config = { }, // Set the production url of your site here - // url: 'https://docs.fair.pm', + url: 'https://docs.fair.pm', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - // baseUrl: '/', + baseUrl: '/', // Trying to get build instead of src - url: 'https://fairpm.github.io/', - baseUrl: '/docs/', + // url: 'https://fairpm.github.io/', + // baseUrl: '/docs/', // GitHub pages deployment config. organizationName: 'fairpm', @@ -108,7 +108,7 @@ const config = { items: [ { label: 'Tutorial', - to: '/docs/', + to: '/', }, ], }, diff --git a/docs/CNAME b/docs/static/CNAME similarity index 100% rename from docs/CNAME rename to docs/static/CNAME From 1b8168f8b88266d9b0f1eac91453782c224e6a04 Mon Sep 17 00:00:00 2001 From: Milana Cap Date: Thu, 30 Apr 2026 23:05:41 +0200 Subject: [PATCH 7/7] Change the build path. Signed-off-by: Milana Cap --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e04c00f..4d63e2d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,7 +34,7 @@ jobs: - name: Upload Build Artifact uses: actions/upload-pages-artifact@v3 with: - path: build + path: docs/build deploy: name: Deploy to GitHub Pages