From aefa9b1b1b6b0e24aebb493b7c28c140e5cc87a3 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 10:33:12 -0500 Subject: [PATCH 1/7] Remove unused cudatoolkit sections --- .github/workflows/website.yaml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index b49db7d..4281c10 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -21,34 +21,29 @@ jobs: pages: write steps: - # Fetch CUDA toolkit using Jimver/cuda-toolkit - - name: Fetch CUDA toolkit - uses: Jimver/cuda-toolkit@master - id: cuda-toolkit - with: - cuda: '12.8.1' - use-local-cache: false - - - name: Check nvcc version - run: nvcc -V - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: - python-version: '3.11' + python-version: '3.12' - name: Install development and distributions version run: | pip install --upgrade pip git submodule update --init --recursive - pip install .[docs] + pip install ".[docs]" - - name: Setup pandoc - uses: siacodelabs/setup-pandoc@v1 - with: - xelatex: true. + # - name: Setup pandoc + # uses: siacodelabs/setup-pandoc@v1 + # with: + # xelatex: true + - name: Install pandoc + uses: pandoc/actions/setup@v1 + + - name: Run pandoc + run: pandoc --version # didn't need to change anything here, but had to add sphinx.ext.githubpages # to my conf.py extensions list. that fixes the broken uploads @@ -61,7 +56,7 @@ jobs: # apart from that quite clean and nice - name: GitHub Pages Action #if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./doc/_build/html From 37c7775981f70833adf6a4a1ebdd5da93d151481 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 10:35:59 -0500 Subject: [PATCH 2/7] Enable website checking when making pull requests to main branch --- .github/workflows/website.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 4281c10..cbe712d 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main permissions: From 601b6154018de9e838abb5c2549a77ef2472e1c3 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 10:39:27 -0500 Subject: [PATCH 3/7] Only triger the website pushing when pull request merged --- .github/workflows/website.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index cbe712d..aac1fbb 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -7,6 +7,8 @@ on: pull_request: branches: - main + types: + - closed permissions: @@ -58,7 +60,12 @@ jobs: # still need to build and set the PAT to get a rebuild on the pages job, # apart from that quite clean and nice - name: GitHub Pages Action - #if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: | + (github.event_name == 'push' && github.ref == 'refs/heads/main') || + (github.event_name == 'pull_request' && + github.event.action == 'closed' && + github.event.pull_request.merged == true && + github.event.pull_request.base.ref == 'main') uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} From 244c1c246068e60176d84767c24042badf2e1b7d Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 10:42:56 -0500 Subject: [PATCH 4/7] Address the duplicated website buidling --- .github/workflows/website.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index aac1fbb..930f2bf 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -7,8 +7,6 @@ on: pull_request: branches: - main - types: - - closed permissions: @@ -62,9 +60,7 @@ jobs: - name: GitHub Pages Action if: | (github.event_name == 'push' && github.ref == 'refs/heads/main') || - (github.event_name == 'pull_request' && - github.event.action == 'closed' && - github.event.pull_request.merged == true && + (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main') uses: peaceiris/actions-gh-pages@v4 with: From 7e3297e705cd8c8b39278fa61d24536695188f2f Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 11:09:15 -0500 Subject: [PATCH 5/7] Use pip-compile to extract website dependencies --- .github/workflows/website.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 930f2bf..6bdc816 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -34,9 +34,10 @@ jobs: - name: Install development and distributions version run: | - pip install --upgrade pip + pip install --upgrade pip pip-compile git submodule update --init --recursive - pip install ".[docs]" + pip-compile pyproject.toml --extra docs -o requirements_docs.txt + pip install -r requirements_docs.txt # - name: Setup pandoc # uses: siacodelabs/setup-pandoc@v1 From aa381874b321caa97fbb99722b90acdff8c2b0d4 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 11:14:43 -0500 Subject: [PATCH 6/7] Update .github/workflows/website.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/website.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 6bdc816..5f09de6 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -34,7 +34,7 @@ jobs: - name: Install development and distributions version run: | - pip install --upgrade pip pip-compile + pip install --upgrade pip pip-tools git submodule update --init --recursive pip-compile pyproject.toml --extra docs -o requirements_docs.txt pip install -r requirements_docs.txt From 3b88565d4da0e458af192dcf03914c6f4845cdcf Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 11:16:36 -0500 Subject: [PATCH 7/7] Simplify configurations --- .github/workflows/website.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 5f09de6..edbe6e0 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -59,10 +59,7 @@ jobs: # still need to build and set the PAT to get a rebuild on the pages job, # apart from that quite clean and nice - name: GitHub Pages Action - if: | - (github.event_name == 'push' && github.ref == 'refs/heads/main') || - (github.event.pull_request.merged == true && - github.event.pull_request.base.ref == 'main') + if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }}