From f514f17e924d72eb6aa4cdfa98adbdf22aeedb73 Mon Sep 17 00:00:00 2001 From: mauwii Date: Sun, 19 Feb 2023 04:28:07 +0100 Subject: [PATCH] add variables to define: - repo_url - repo_name - site_url --- .github/workflows/mkdocs-material.yml | 4 ++++ mkdocs.yml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mkdocs-material.yml b/.github/workflows/mkdocs-material.yml index e553dde8c4..df4fa0a01e 100644 --- a/.github/workflows/mkdocs-material.yml +++ b/.github/workflows/mkdocs-material.yml @@ -9,6 +9,10 @@ jobs: mkdocs-material: if: github.event.pull_request.draft == false runs-on: ubuntu-latest + env: + REPO_URL: '${{ github.server_url }}/${{ github.repository }}' + REPO_NAME: '${{ github.repository }}' + SITE_URL: 'https://${{ github.repository_owner }}.github.io/InvokeAI' steps: - name: checkout sources uses: actions/checkout@v3 diff --git a/mkdocs.yml b/mkdocs.yml index 4eb9920e6c..f9acbbc41a 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,13 +2,13 @@ # General site_name: InvokeAI Stable Diffusion Toolkit Docs -site_url: https://invoke-ai.github.io/InvokeAI +site_url: !ENV [SITE_URL, 'https://invoke-ai.github.io/InvokeAI'] site_author: mauwii dev_addr: '127.0.0.1:8080' # Repository -repo_name: 'invoke-ai/InvokeAI' -repo_url: 'https://github.com/invoke-ai/InvokeAI' +repo_name: !ENV [REPO_NAME, 'invoke-ai/InvokeAI'] +repo_url: !ENV [REPO_URL, 'https://github.com/invoke-ai/InvokeAI'] edit_uri: blob/main/docs/ # Copyright