Skip to content

Commit 4dca7e5

Browse files
authored
chore: make doc building use bootstrap script and venv site packages (#3403)
Making the doc build use it seems like a good way to get some real usage of the feature.
1 parent e132012 commit 4dca7e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
load("@bazel_skylib//rules:build_test.bzl", "build_test")
1616
load("@dev_pip//:requirements.bzl", "requirement")
1717
load("//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: disable=bzl-visibility
18+
load("//python/private:common_labels.bzl", "labels") # buildifier: disable=bzl-visibility
1819
load("//python/uv:lock.bzl", "lock") # buildifier: disable=bzl-visibility
1920
load("//sphinxdocs:readthedocs.bzl", "readthedocs_install")
2021
load("//sphinxdocs:sphinx.bzl", "sphinx_build_binary", "sphinx_docs")
@@ -161,6 +162,10 @@ readthedocs_install(
161162

162163
sphinx_build_binary(
163164
name = "sphinx-build",
165+
config_settings = {
166+
labels.BOOTSTRAP_IMPL: "script",
167+
labels.VENVS_SITE_PACKAGES: "yes",
168+
},
164169
target_compatible_with = _TARGET_COMPATIBLE_WITH,
165170
deps = [
166171
requirement("sphinx"),

0 commit comments

Comments
 (0)