blob: 336824d486f0f91696b375688d6ab4084d1a655a [file]
load("@io_bazel_skydoc//stardoc:stardoc.bzl", "stardoc")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
exports_files(["defs.bzl"])
licenses(["notice"]) # Apache 2.0
stardoc(
name = "defs",
out = "defs.md",
input = "defs.bzl",
symbol_names = ["maven_install"],
deps = ["//:implementation"],
)
stardoc(
name = "specs",
out = "specs.md",
input = "specs.bzl",
symbol_names = [
"maven.artifact",
"maven.repository",
"maven.exclusion",
],
deps = ["//:implementation"],
)
bzl_library(
name = "implementation",
srcs = [
":coursier.bzl",
":defs.bzl",
":specs.bzl",
"//:private/versions.bzl",
"//third_party/bazel_json/lib:json_parser.bzl",
],
)
genrule(
name = "generate_api_reference",
srcs = [
"//:docs/includes/main_functions_header.md",
"defs.md",
"//:docs/includes/spec_functions_header.md",
"specs.md",
],
outs = ["api.md"],
cmd = """cat \
$(location //:docs/includes/main_functions_header.md) \
$(location //:defs.md) \
$(location //:docs/includes/spec_functions_header.md) \
$(location //:specs.md) > $@""",
)