From 3882e63025670ac9115f9874c3110fce272bde05 Mon Sep 17 00:00:00 2001 From: Paul Friederichsen Date: Sat, 19 Feb 2022 14:54:22 -0600 Subject: [PATCH] Set site_url when deploying to GitHub Pages --- .github/workflows/publish_docs.yml | 4 ++++ mkdocs.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml index 472e17ad..3fe3fb06 100644 --- a/.github/workflows/publish_docs.yml +++ b/.github/workflows/publish_docs.yml @@ -1,9 +1,13 @@ name: Publish Docs + on: push: branches: - master +env: + HYDRUS_DOCS_SITE_URL: "https://hydrusnetwork.github.io/hydrus/" + jobs: deploy: runs-on: ubuntu-latest diff --git a/mkdocs.yml b/mkdocs.yml index 40bdda8d..e1fb2964 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,6 @@ site_name: hydrus network site_description: "A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers." +site_url: !ENV [HYDRUS_DOCS_SITE_URL, ''] repo_url: https://github.com/hydrusnetwork/hydrus repo_name: hydrusnetwork/hydrus use_directory_urls: false