load(
    "//doc:defs.bzl",
    "DEFAULT_TEST_TAGS",
    "enumerate_filegroup",
)
load("//tools/lint:lint.bzl", "add_lint_tests")
load(
    "//tools/skylark:drake_py.bzl",
    "drake_py_binary",
)

package(default_visibility = ["//visibility:private"])

filegroup(
    name = "jekyll_input",
    srcs = [
        ":_config.yml",
        ":_layouts/default.html",
        "@styleguide//:cppguide.html",
        "@styleguide//:include/link.png",
        "@styleguide//:include/styleguide.css",
        "@styleguide//:include/styleguide.js",
        "@styleguide//:pyguide.md",
    ],
)

enumerate_filegroup(
    name = "jekyll_input.txt",
    data = [":jekyll_input"],
)

drake_py_binary(
    name = "build",
    srcs = ["build.py"],
    add_test_rule = 1,
    data = [
        ":jekyll_input",
        ":jekyll_input.txt",
    ],
    test_rule_args = ["--out_dir=<test>"],
    test_rule_tags = DEFAULT_TEST_TAGS,
    visibility = ["//doc:__pkg__"],
    deps = [
        "//doc:defs",
    ],
)

add_lint_tests()
