From 490c0c13ac4f36d72a32913407afbf6c3703009f Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Tue, 24 Feb 2026 19:31:24 +0000 Subject: [PATCH 1/3] skip diffs --- .github/workflows/gh-pages.yaml | 2 ++ src/ethereum_spec_tools/docc.py | 5 +++++ tox.ini | 1 + 3 files changed, 8 insertions(+) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index c2a90f8f63..8eda5e439d 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -43,6 +43,8 @@ jobs: run: | tox -e spec-docs touch .tox/docs/.nojekyll + env: + DOCC_SKIP_DIFFS: ${{ (github.event_name != 'push' || github.ref_name != github.event.repository.default_branch) && '1' || '' }} - name: Upload Pages Artifact id: artifact diff --git a/src/ethereum_spec_tools/docc.py b/src/ethereum_spec_tools/docc.py index cc1623174a..3cf4e47b95 100644 --- a/src/ethereum_spec_tools/docc.py +++ b/src/ethereum_spec_tools/docc.py @@ -19,6 +19,7 @@ import dataclasses import logging +import os from collections import defaultdict from itertools import tee, zip_longest from pathlib import PurePath @@ -89,6 +90,10 @@ def discover(self, known: FrozenSet[T]) -> Iterator[Source]: """ Find sources. """ + if os.environ.get("DOCC_SKIP_DIFFS"): + logging.info("Skipping diff discovery (DOCC_SKIP_DIFFS)") + return + forks = {f.path: f for f in self.forks if f.path is not None} by_fork: Dict[Hardfork, Dict[PurePath, Source]] = defaultdict(dict) diff --git a/tox.ini b/tox.ini index f23707dc35..ed61282c7b 100644 --- a/tox.ini +++ b/tox.ini @@ -194,6 +194,7 @@ commands = [testenv:spec-docs] description = Generate documentation for the specification code using docc basepython = python3 +passenv = DOCC_SKIP_DIFFS commands = docc --output "{toxworkdir}/docs" python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs" / "index.html"))' From 0242abc59b90c75811300d11c299223a453c0213 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Tue, 24 Feb 2026 20:02:27 +0000 Subject: [PATCH 2/3] Update .github/workflows/gh-pages.yaml Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com> --- .github/workflows/gh-pages.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 8eda5e439d..1cbc7bb4ba 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -44,7 +44,7 @@ jobs: tox -e spec-docs touch .tox/docs/.nojekyll env: - DOCC_SKIP_DIFFS: ${{ (github.event_name != 'push' || github.ref_name != github.event.repository.default_branch) && '1' || '' }} + DOCC_SKIP_DIFFS: ${{ case(github.event_name == 'push' && github.ref_name == github.event.repository.default_branch, '', '1') }} - name: Upload Pages Artifact id: artifact From 2ec7c20d7a814bb7dca01e80fbf6c8288ac705d1 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Tue, 24 Feb 2026 20:13:19 +0000 Subject: [PATCH 3/3] revert: actionlint --- .github/workflows/gh-pages.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 1cbc7bb4ba..8eda5e439d 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -44,7 +44,7 @@ jobs: tox -e spec-docs touch .tox/docs/.nojekyll env: - DOCC_SKIP_DIFFS: ${{ case(github.event_name == 'push' && github.ref_name == github.event.repository.default_branch, '', '1') }} + DOCC_SKIP_DIFFS: ${{ (github.event_name != 'push' || github.ref_name != github.event.repository.default_branch) && '1' || '' }} - name: Upload Pages Artifact id: artifact