Skip to content

Commit dc27919

Browse files
authored
chore(deps): drop aspect_bazel_lib (#264)
* chore(deps): remove aspect_bazel_lib * cleanup ref * add doc extract
1 parent 5293684 commit dc27919

File tree

9 files changed

+17
-430
lines changed

9 files changed

+17
-430
lines changed

.bazelci/presubmit.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ tasks:
1111
build_targets:
1212
- //...
1313

14-
docs:
15-
name: docs
16-
platform: ${{ platform }}
17-
working_directory: docs
18-
test_targets:
19-
- //...
20-
2114
examples_go:
2215
name: examples
2316
platform: ${{ platform }}

.bazelignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
docs
21
examples

.github/workflows/create_archive_and_notes.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,12 @@ To use the Jsonnet rules, add the following to your \`MODULE.bazel\` file:
3232
bazel_dep(name = "rules_jsonnet", version = "${TAG}")
3333
\`\`\`
3434
EOF
35+
36+
# Add generated API docs to the release
37+
# See https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/stardoc.md
38+
docs="$(mktemp -d)"; targets="$(mktemp)"
39+
bazel --output_base="$docs" query --output=label --output_file="$targets" 'kind("starlark_doc_extract rule", //...)'
40+
bazel --output_base="$docs" build --target_pattern_file="$targets"
41+
tar --create --auto-compress \
42+
--directory "$(bazel --output_base="$docs" info bazel-bin)" \
43+
--file "$GITHUB_WORKSPACE/${ARCHIVE%.tar.gz}.docs.tar.gz" .

docs/BUILD.bazel

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/MODULE.bazel

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<title>rules_jsonnet documentation has moved</title>
55
</head>
66
<body>
7-
<p>The documentation for rules_jsonnet can now be found <a href="https://github.com/bazelbuild/rules_jsonnet/blob/master/docs/jsonnet.md">on GitHub</a>.</p>
7+
<p>The documentation for rules_jsonnet can now be found <a href="https://registry.bazel.build/docs/rules_jsonnet">on Bazel Central Registry</a>.</p>
88
</body>
99
</html>

docs/jsonnet.md

Lines changed: 0 additions & 396 deletions
This file was deleted.

docs/jsonnet/jsonnet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<title>rules_jsonnet documentation has moved</title>
55
</head>
66
<body>
7-
<p>The documentation for rules_jsonnet can now be found <a href="https://github.com/bazelbuild/rules_jsonnet/blob/master/docs/jsonnet.md">on GitHub</a>.</p>
7+
<p>The documentation for rules_jsonnet can now be found <a href="https://registry.bazel.build/docs/rules_jsonnet">on Bazel Central Registry</a>.</p>
88
</body>
99
</html>

jsonnet/BUILD

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ load(":toolchain.bzl", "jsonnet_toolchain")
22
load("@rules_python//python:py_binary.bzl", "py_binary")
33
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
44

5-
exports_files(["docs.bzl", "jsonnet.bzl", "toolchain.bzl"])
6-
75
bzl_library(
86
name = "bzl_srcs",
97
srcs = ["@bazel_tools//tools:bzl_srcs"],
@@ -24,6 +22,12 @@ bzl_library(
2422
],
2523
)
2624

25+
starlark_doc_extract(
26+
name = "docs.extract",
27+
src = "docs.bzl",
28+
deps = [":docs"],
29+
)
30+
2731
py_binary(
2832
name = "stamper",
2933
srcs = ["stamper.py"],

0 commit comments

Comments
 (0)