From 7cca02b953b4db24d5031d511a901dd0e12d8e2e Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sun, 16 Apr 2023 16:53:22 -0500 Subject: [PATCH] :wrench: (docs): Pass repo name and URL via env --- .github/workflows/release.yaml | 3 +++ docs/mkdocs.yml | 4 ++-- docs/overrides/partials/actions.html | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 710a52b84..4619e7209 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,6 +80,9 @@ jobs: - name: Build docs working-directory: docs + env: + REPO_NAME: ${{ github.repository }} + REPO_URL: ${{ github.server_url }}/${{ github.repository }} run: mkdocs build - name: Upload artifact diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 8ce4faa46..c823e6b30 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -4,8 +4,8 @@ site_author: Gabe Cook site_description: >- A collection of Helm charts, based on the bjw-s common library chart. -repo_name: gabe565/charts -repo_url: https://github.com/gabe565/charts +repo_name: !ENV [REPO_NAME, "gabe565/charts"] +repo_url: !ENV [REPO_URL, "https://github.com/gabe565/charts"] theme: name: material diff --git a/docs/overrides/partials/actions.html b/docs/overrides/partials/actions.html index 0b6e7190c..7e9fa29d4 100644 --- a/docs/overrides/partials/actions.html +++ b/docs/overrides/partials/actions.html @@ -1,6 +1,6 @@ {% if page.url.startswith("charts/") %}