From f3022a980ef96944378686020ba6c7bd5fbb4b46 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 13:13:16 +0000 Subject: [PATCH] fix(docs): fixed images breaking on branch docs --- .forgejo/workflows/workflow.yaml | 10 ++++++---- mkdocs.yml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index b1a975c..67967e3 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -18,13 +18,15 @@ jobs: - name: Install dependencies run: poetry install --with docs --with dev --no-root - - name: Build the documentation - run: mkdocs build - continue-on-error: true - - name: Set Environment Variables uses: actions/env@v2 + - name: Build the documentation + run: | + export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.seacogs.coastalcommits.com" + mkdocs build -v + continue-on-error: true + - name: Deploy the documentation to Meli (CoastalCommits Pages) run: | GREEN='\033[0;32m' diff --git a/mkdocs.yml b/mkdocs.yml index 05c027b..63ec33c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: SeaCogs Documentation -site_url: https://seacogs.coastalcommits.com +site_url: !ENV [SITE_NAME, 'https://seacogs.coastalcommits.com'] repo_name: CoastalCommits repo_url: https://coastalcommits.com/SeaswimmerTheFsh/SeaCogs edit_uri: src/branch/main/.docs