From 9a3af39738ad3c781c810e5a870cbf2377802501 Mon Sep 17 00:00:00 2001 From: Piotr Korkus Date: Thu, 26 Mar 2026 15:29:45 +0100 Subject: [PATCH] bazel: bump docs-as-code --- .github/workflows/test_and_docs.yml | 2 +- BUILD | 1 + bazel_common/score_modules_tooling.MODULE.bazel | 6 +++++- known_good.json | 5 ++++- patches/docs-as-code/BUILD | 0 .../docs-as-code/remove-nonexisting-document.patch | 12 ++++++++++++ 6 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 patches/docs-as-code/BUILD create mode 100644 patches/docs-as-code/remove-nonexisting-document.patch diff --git a/.github/workflows/test_and_docs.yml b/.github/workflows/test_and_docs.yml index 6017213b8d7..022d9d7c858 100644 --- a/.github/workflows/test_and_docs.yml +++ b/.github/workflows/test_and_docs.yml @@ -112,7 +112,7 @@ jobs: --repo_contents_cache="/home/runner/.cache/bazel/repo_contents" \ --repository_cache="/home/runner/.cache/bazel/repo" \ --disk_cache="/home/runner/.cache/bazel/disk" \ - //:docs_combo_experimental -- \ + //:docs_combo -- \ --github_user=${{ github.repository_owner }} \ --github_repo=${{ github.event.repository.name }} diff --git a/BUILD b/BUILD index 7afff7dac7e..9cd0b69a0e3 100644 --- a/BUILD +++ b/BUILD @@ -32,6 +32,7 @@ docs( "@score_process//:needs_json", "@score_docs_as_code//:needs_json", ], + known_good = "known_good.json", source_dir = "docs", ) diff --git a/bazel_common/score_modules_tooling.MODULE.bazel b/bazel_common/score_modules_tooling.MODULE.bazel index 50d7bc7eaa0..e83c8cbfc3a 100644 --- a/bazel_common/score_modules_tooling.MODULE.bazel +++ b/bazel_common/score_modules_tooling.MODULE.bazel @@ -59,7 +59,11 @@ git_override( bazel_dep(name = "score_docs_as_code") git_override( module_name = "score_docs_as_code", - commit = "c1207676afe6cafd25c35d420e73279a799515d8", + commit = "b9aedef6c02f6ded6380e53b3ddc525d1427ff69", + patch_strip = 1, + patches = [ + "//patches/docs-as-code:remove-nonexisting-document.patch", + ], remote = "https://github.com/eclipse-score/docs-as-code.git", ) diff --git a/known_good.json b/known_good.json index 0e8c80815ee..8400027b24a 100644 --- a/known_good.json +++ b/known_good.json @@ -138,7 +138,10 @@ }, "score_docs_as_code": { "repo": "https://github.com/eclipse-score/docs-as-code.git", - "hash": "c1207676afe6cafd25c35d420e73279a799515d8" + "hash": "b9aedef6c02f6ded6380e53b3ddc525d1427ff69", + "bazel_patches": [ + "//patches/docs-as-code:remove-nonexisting-document.patch" + ] }, "score_process": { "repo": "https://github.com/eclipse-score/process_description.git", diff --git a/patches/docs-as-code/BUILD b/patches/docs-as-code/BUILD new file mode 100644 index 00000000000..e69de29bb2d diff --git a/patches/docs-as-code/remove-nonexisting-document.patch b/patches/docs-as-code/remove-nonexisting-document.patch new file mode 100644 index 00000000000..64c0a991bf6 --- /dev/null +++ b/patches/docs-as-code/remove-nonexisting-document.patch @@ -0,0 +1,12 @@ +diff --git a/docs/internals/index.rst b/docs/internals/index.rst +index 2d3e7975..05e785e5 100644 +--- a/docs/internals/index.rst ++++ b/docs/internals/index.rst +@@ -8,7 +8,6 @@ This section is not relevant for users of docs-as-code but for developers extend + .. toctree:: + :maxdepth: 1 + +- extensions/index + benchmark_results + decisions/index + requirements/index