Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ build:release --@rules_rust//rust/settings:lto=fat
common --per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --host_per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT

# Stardoc needs a jdk; give a hermetic one
common --java_runtime_version=remotejdk_11

# Load any settings specific to the current user.
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members
# This needs to be last statement in this
Expand Down
1 change: 1 addition & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"integrity": "**leave this alone**",
"strip_prefix": "{REPO}-{VERSION}",
"docs_url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.docs.tar.gz",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
}
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ ARCHIVE="rules_playwright-$TAG.tar.gz"
git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')

# Add generated API docs to the release
# See https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/stardoc.md
docs="$(mktemp -d)"; targets="$(mktemp)"
bazel --output_base="$docs" query --output=label --output_file="$targets" 'kind("starlark_doc_extract rule", //...)'
bazel --output_base="$docs" build --target_pattern_file="$targets"
tar --create --auto-compress \
--directory "$(bazel --output_base="$docs" info bazel-bin)" \
--file "$GITHUB_WORKSPACE/${ARCHIVE%.tar.gz}.docs.tar.gz" .

cat << EOF
## Using Bzlmod with Bazel 6 or greater

Expand Down
8 changes: 0 additions & 8 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,3 @@ crate.from_cargo(
],
)
use_repo(crate, "crate_index")

http_jar = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")

http_jar(
name = "stardoc-prebuilt",
integrity = "sha256-jDi5ITmziwwiHCsfd8v0UOoraWXIAfICIll+wbpg/vE=",
urls = ["https://github.com/alexeagle/stardoc-prebuilt/releases/download/v0.7.1/renderer_deploy.jar"],
)
25 changes: 0 additions & 25 deletions docs/BUILD.bazel

This file was deleted.

42 changes: 0 additions & 42 deletions docs/extensions.md

This file was deleted.

60 changes: 0 additions & 60 deletions docs/integrity_map.md

This file was deleted.

56 changes: 0 additions & 56 deletions docs/repositories.md

This file was deleted.

22 changes: 22 additions & 0 deletions playwright/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ bzl_library(
],
)

starlark_doc_extract(
name = "defs.doc_extract",
src = "defs.bzl",
symbol_names = [
"playwright_integrity_map",
"playwright_browser_matrix",
],
deps = [":defs"],
)

bzl_library(
name = "extensions",
srcs = ["extensions.bzl"],
Expand All @@ -32,6 +42,12 @@ bzl_library(
],
)

starlark_doc_extract(
name = "extensions.doc_extract",
src = "extensions.bzl",
deps = [":extensions"],
)

bzl_library(
name = "repositories",
srcs = ["repositories.bzl"],
Expand All @@ -46,3 +62,9 @@ bzl_library(
"@bazel_tools//tools/build_defs/repo:utils.bzl",
],
)

starlark_doc_extract(
name = "repositories.doc_extract",
src = "repositories.bzl",
deps = [":repositories"],
)
7 changes: 0 additions & 7 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
package(default_visibility = ["//visibility:public"])

java_binary(
name = "stardoc_renderer",
main_class = "com/google/devtools/build/stardoc/renderer/RendererMain",
runtime_deps = ["@stardoc-prebuilt//jar"],
)