From 2c9ad73281fdb990f8c8ee6b537d354ac32fee99 Mon Sep 17 00:00:00 2001 From: Ebony Louis <55366651+EbonyLouis@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:21:53 -0500 Subject: [PATCH] docs: Test updated deploy_docs workflow (#411) --- .github/workflows/deploy_docs.yaml | 15 +++++++++++++++ mkdocs.yml | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_docs.yaml b/.github/workflows/deploy_docs.yaml index 06cdfb82..d1977123 100644 --- a/.github/workflows/deploy_docs.yaml +++ b/.github/workflows/deploy_docs.yaml @@ -10,6 +10,15 @@ on: - 'mkdocs.yml' - '.github/workflows/deploy_docs.yaml' + pull_request: + branches: + - main + paths: + - 'docs/**' + - 'mkdocs.yml' + - '.github/workflows/deploy_docs.yaml' + + jobs: deploy: runs-on: ubuntu-latest @@ -21,5 +30,11 @@ jobs: - name: Install UV uses: astral-sh/setup-uv@v3 + - name: Create UV virtual environment + run: uv venv + + - name: Install dependencies + run: uv pip install "mkdocs-material[imaging]" Pillow cairosvg + - name: Build the documentation run: uv run mkdocs gh-deploy --force diff --git a/mkdocs.yml b/mkdocs.yml index fca9cd55..0b871c5f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -45,7 +45,7 @@ plugins: - callouts - glightbox - social: - enabled: !ENV [CI, false] + enabled: !ENV [CI, true] - mkdocstrings: handlers: python: