/
BUILD.bazel
48 lines (43 loc) · 1010 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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()