Skip to content

Commit

Permalink
🌟 Remove workspace workaround for stardoc (#165)
Browse files Browse the repository at this point in the history
Stardoc now supports bzlmod.
  • Loading branch information
aaronmondal authored Jun 13, 2023
1 parent 66c1808 commit d398543
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 37 deletions.
1 change: 0 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,4 @@ build:rbe_local --experimental_docker_verbose
try-import %workspace%/.bazelrc.user

# Workaround to build docs. Only required in rules_ll project root.
build:docs --noexperimental_enable_bzlmod
build:docs --noremote_accept_cached
3 changes: 2 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ bazel_dep(name = "rules_cc", version = "0.0.6")
bazel_dep(name = "bazel_skylib", version = "1.4.1")

# Documentation.
bazel_dep(name = "stardoc", version = "0.5.3")
bazel_dep(name = "rules_java", version = "6.1.0", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True)

# The LLVM project. We override the specific commit below.
bazel_dep(name = "llvm-project-overlay", version = "17-init-bcr.3")
Expand Down
36 changes: 1 addition & 35 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
@@ -1,35 +1 @@
# TODO: Remove all of this after https://github.com/bazelbuild/stardoc/pull/141.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_license",
sha256 = "6157e1e68378532d0241ecd15d3c45f6e5cfd98fc10846045509fb2a7cc9e381",
urls = [
"https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
],
)

http_archive(
name = "stardoc",
sha256 = "3fd8fec4ddec3c670bd810904e2e33170bedfe12f90adf943508184be458c8bb",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.5.3/stardoc-0.5.3.tar.gz",
"https://github.com/bazelbuild/stardoc/releases/download/0.5.3/stardoc-0.5.3.tar.gz",
],
)

load("@stardoc//:setup.bzl", "stardoc_repositories")

stardoc_repositories()

load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()

register_execution_platforms("//rbe/default/config:platform")

register_toolchains(
"//rbe/default/config:cc-toolchain",
"//rbe/default/java:all",
)
# Empty.
1 change: 1 addition & 0 deletions styles/Vocab/eomii/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ HIP
LLVM
NVPTX
Nvidia
OSSF
ROCm
Stardoc
Starlark
Expand Down

0 comments on commit d398543

Please sign in to comment.