From a10b73ccab12ab56b3acc1d8876e86ed5fa6c848 Mon Sep 17 00:00:00 2001 From: "Adrian O.V" <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 11:27:56 -0400 Subject: [PATCH 01/10] Create CNAME --- docs/CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/CNAME diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..6ce8871 --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +docs.terrarium.earth \ No newline at end of file From 5e49fb1261c30b84d0636917ac1eee5160f6b0aa Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 11:35:41 -0400 Subject: [PATCH 02/10] Update docusaurus.config.js --- docusaurus.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 6e3d9d7..352b107 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -19,7 +19,9 @@ const config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'terrarium-earth', // Usually your GitHub org/user name. - projectName: 'terrarium-docs', // Usually your repo name. + projectName: 'Odyssey-Docs', // Usually your repo name. + deploymentBranch: 'prod', + trailingSlash: true, onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', From 476a9b6a5691cdb2104d84790d26b3b9420c0689 Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:01:35 -0400 Subject: [PATCH 03/10] Create deployment.yml --- .github/workflows/deployment.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deployment.yml diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..9be814a --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,33 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - prod + # Review gh actions docs if you want to further define triggers, paths, etc + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on + +jobs: + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Build website + run: yarn build + + # Popular action to deploy to GitHub Pages: + # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + # Build output to publish to the `gh-pages` branch: + publish_dir: ./build From 1441bcf2db4021d5dfbd46eba5d4f49893358db0 Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:15:10 -0400 Subject: [PATCH 04/10] Update deployment.yml --- .github/workflows/deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 9be814a..e68e7e0 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -28,6 +28,6 @@ jobs: - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.TOKEN }} # Build output to publish to the `gh-pages` branch: publish_dir: ./build From 6523dbaa906a7b93af04300150a5a53fcee1132f Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:23:04 -0400 Subject: [PATCH 05/10] Update docusaurus.config.js --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 352b107..6053e60 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -23,7 +23,7 @@ const config = { deploymentBranch: 'prod', trailingSlash: true, - onBrokenLinks: 'throw', + onBrokenLinks: 'warn', onBrokenMarkdownLinks: 'warn', // Even if you don't use internalization, you can use this field to set useful From a473d35eeb2092d72d28bc357b08a3d9377848b9 Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 14:36:43 -0400 Subject: [PATCH 06/10] Update docusaurus.config.js --- docusaurus.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 6053e60..f58558f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -11,7 +11,7 @@ const config = { favicon: 'img/favicon.ico', // Set the production url of your site here - url: 'https://docs.terrarium.earth', + url: 'https://terrarium-earth.github.io/Odyssey-Docs', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', @@ -20,8 +20,7 @@ const config = { // If you aren't using GitHub pages, you don't need these. organizationName: 'terrarium-earth', // Usually your GitHub org/user name. projectName: 'Odyssey-Docs', // Usually your repo name. - deploymentBranch: 'prod', - trailingSlash: true, + trailingSlash: false, onBrokenLinks: 'warn', onBrokenMarkdownLinks: 'warn', From ec2a61944b2da4a095bbd88ff9369da608355cac Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 14:37:49 -0400 Subject: [PATCH 07/10] Update docusaurus.config.js --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index f58558f..571c1d6 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -11,7 +11,7 @@ const config = { favicon: 'img/favicon.ico', // Set the production url of your site here - url: 'https://terrarium-earth.github.io/Odyssey-Docs', + url: 'https://docs.terrarium.earth', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', From 5075710fc3c267cce246ad86f73daa7c0c6a80dd Mon Sep 17 00:00:00 2001 From: "Adrian O.V" <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 14:39:58 -0400 Subject: [PATCH 08/10] Create CNAME --- CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 CNAME diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..6ce8871 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +docs.terrarium.earth \ No newline at end of file From c82ae4928405450622a53899a4d70cb9ff658b55 Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:06:49 -0400 Subject: [PATCH 09/10] Update docusaurus.config.js --- docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 571c1d6..831ff4e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -14,12 +14,12 @@ const config = { url: 'https://docs.terrarium.earth', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/', + baseUrl: '/project-odyssey/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'terrarium-earth', // Usually your GitHub org/user name. - projectName: 'Odyssey-Docs', // Usually your repo name. + projectName: 'project-odyssey', // Usually your repo name. trailingSlash: false, onBrokenLinks: 'warn', From 9b26f6d5c6c6cad794614a61933dcc41c8633526 Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:16:58 -0400 Subject: [PATCH 10/10] WHY WONT YOU JUST WORK --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 831ff4e..3b5391a 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -14,7 +14,7 @@ const config = { url: 'https://docs.terrarium.earth', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/project-odyssey/', + baseUrl: '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these.