blob: b33479cde50913fd8528b77ff39be4529150ba43 [file] [edit]
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@stardoc//stardoc:stardoc.bzl", "stardoc")
bzl_library(
name = "doc_rules",
srcs = ["doc_rules.bzl"],
deps = ["//rules:bzl"],
)
# Run with `--workspace_status_command='echo STABLE_GIT_COMMIT $(git rev-parse HEAD)'`
# to get the git commit stamping in the header.
stardoc(
name = "stardoc",
out = "stardoc.md",
footer_template = "footer_template.vm",
header_template = "header_template.vm",
input = "doc_rules.bzl",
stamp = 1,
table_of_contents_template = "table_of_contents_template.vm",
deps = [":doc_rules"],
)
build_test(
name = "stardoc_build_test",
targets = [":stardoc"],
)