Skip to content

Commit b6b7292

Browse files
devversionjelbourn
authored andcommitted
build: transform overview markdown files with bazel (#14300)
1 parent 4cda0f3 commit b6b7292

File tree

55 files changed

+376
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+376
-57
lines changed

guides/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools/markdown-to-html:index.bzl", "markdown_to_html")
3+
load("//tools:defaults.bzl", "markdown_to_html")
44

55
markdown_to_html(
66
name = "guides",

src/cdk/a11y/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package(default_visibility=["//visibility:public"])
22

33
load("@io_bazel_rules_sass//:defs.bzl", "sass_library", "sass_binary")
4-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
4+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
5+
"markdown_to_html")
56

67
ng_module(
78
name = "a11y",
@@ -49,3 +50,8 @@ ng_web_test_suite(
4950
name = "unit_tests",
5051
deps = [":a11y_test_sources"],
5152
)
53+
54+
markdown_to_html(
55+
name = "overview",
56+
srcs = [":a11y.md"],
57+
)

src/cdk/accordion/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ts_library", "ng_test_library", "ng_web_test_suite")
3+
load("//tools:defaults.bzl", "ng_module", "ts_library", "ng_test_library", "ng_web_test_suite",
4+
"markdown_to_html")
45

56
ng_module(
67
name = "accordion",
@@ -28,3 +29,8 @@ ng_web_test_suite(
2829
name = "unit_tests",
2930
deps = [":accordion_test_sources"],
3031
)
32+
33+
markdown_to_html(
34+
name = "overview",
35+
srcs = [],
36+
)

src/cdk/bidi/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
3+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
4+
"markdown_to_html")
45

56
ng_module(
67
name = "bidi",
@@ -25,3 +26,8 @@ ng_web_test_suite(
2526
name = "unit_tests",
2627
deps = [":bidi_test_sources"],
2728
)
29+
30+
markdown_to_html(
31+
name = "overview",
32+
srcs = [":bidi.md"],
33+
)

src/cdk/coercion/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ts_library", "jasmine_node_test")
3+
load("//tools:defaults.bzl", "ts_library", "jasmine_node_test", "markdown_to_html")
44

55
ts_library(
66
name = "coercion",
@@ -22,3 +22,8 @@ jasmine_node_test(
2222
name = "unit_tests",
2323
deps = [":coercion_test_sources"],
2424
)
25+
26+
markdown_to_html(
27+
name = "overview",
28+
srcs = [":coercion.md"],
29+
)

src/cdk/collections/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ts_library", "jasmine_node_test")
3+
load("//tools:defaults.bzl", "ng_module", "ts_library", "jasmine_node_test", "markdown_to_html")
44

55
ng_module(
66
name = "collections",
@@ -26,3 +26,8 @@ jasmine_node_test(
2626
name = "unit_tests",
2727
deps = [":collections_test_sources"],
2828
)
29+
30+
markdown_to_html(
31+
name = "overview",
32+
srcs = [":collections.md"],
33+
)

src/cdk/drag-drop/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
3+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
4+
"markdown_to_html")
45

56
ng_module(
67
name = "drag-drop",
@@ -32,3 +33,8 @@ ng_web_test_suite(
3233
name = "unit_tests",
3334
deps = [":drag-drop_test_sources"],
3435
)
36+
37+
markdown_to_html(
38+
name = "overview",
39+
srcs = [":drag-drop.md"],
40+
)

src/cdk/keycodes/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ts_library", "ts_web_test_suite")
3+
load("//tools:defaults.bzl", "ts_library", "ts_web_test_suite", "markdown_to_html")
44

55
ts_library(
66
name = "keycodes",
@@ -23,3 +23,8 @@ ts_web_test_suite(
2323
name = "unit_tests",
2424
deps = [":keycodes_test_sources"],
2525
)
26+
27+
markdown_to_html(
28+
name = "overview",
29+
srcs = [":keycodes.md"],
30+
)

src/cdk/layout/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
3+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
4+
"markdown_to_html")
45

56
ng_module(
67
name = "layout",
@@ -28,3 +29,8 @@ ng_web_test_suite(
2829
name = "unit_tests",
2930
deps = [":layout_test_sources"],
3031
)
32+
33+
markdown_to_html(
34+
name = "overview",
35+
srcs = [":layout.md"],
36+
)

src/cdk/observers/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
3+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
4+
"markdown_to_html")
45

56
ng_module(
67
name = "observers",
@@ -24,3 +25,8 @@ ng_web_test_suite(
2425
name = "unit_tests",
2526
deps = [":observers_test_sources"],
2627
)
28+
29+
markdown_to_html(
30+
name = "overview",
31+
srcs = [":observers.md"],
32+
)

src/cdk/overlay/BUILD.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package(default_visibility=["//visibility:public"])
22

33
load("@io_bazel_rules_sass//:defs.bzl", "sass_library", "sass_binary")
4-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
4+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
5+
"markdown_to_html")
56

67
ng_module(
78
name = "overlay",
@@ -56,3 +57,9 @@ ng_web_test_suite(
5657
deps = [":overlay_test_sources"],
5758
static_css = ["overlay_prebuilt_scss"],
5859
)
60+
61+
markdown_to_html(
62+
name = "overview",
63+
srcs = [":overlay.md"],
64+
)
65+

src/cdk/platform/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module")
3+
load("//tools:defaults.bzl", "ng_module", "markdown_to_html")
44

55
ng_module(
66
name = "platform",
@@ -11,3 +11,8 @@ ng_module(
1111
"@angular//packages/core",
1212
]
1313
)
14+
15+
markdown_to_html(
16+
name = "overview",
17+
srcs = [":platform.md"],
18+
)

src/cdk/portal/BUILD.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
3+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
4+
"markdown_to_html")
45

56
ng_module(
67
name = "portal",
@@ -24,3 +25,9 @@ ng_web_test_suite(
2425
name = "unit_tests",
2526
deps = [":portal_test_sources"],
2627
)
28+
29+
markdown_to_html(
30+
name = "overview",
31+
srcs = [":portal.md"],
32+
)
33+

src/cdk/scrolling/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package(default_visibility=["//visibility:public"])
22

33
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
4-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
4+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
5+
"markdown_to_html")
56

67
ng_module(
78
name = "scrolling",
@@ -40,3 +41,8 @@ ng_web_test_suite(
4041
name = "unit_tests",
4142
deps = [":scrolling_test_sources"],
4243
)
44+
45+
markdown_to_html(
46+
name = "overview",
47+
srcs = [":scrolling.md"],
48+
)

src/cdk/stepper/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module")
3+
load("//tools:defaults.bzl", "ng_module", "markdown_to_html")
44

55
ng_module(
66
name = "stepper",
@@ -18,3 +18,8 @@ ng_module(
1818
"//src/cdk/keycodes",
1919
],
2020
)
21+
22+
markdown_to_html(
23+
name = "overview",
24+
srcs = [":stepper.md"],
25+
)

src/cdk/table/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
3+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
4+
"markdown_to_html")
45

56
ng_module(
67
name = "table",
@@ -34,3 +35,8 @@ ng_web_test_suite(
3435
name = "unit_tests",
3536
deps = [":table_test_sources"],
3637
)
38+
39+
markdown_to_html(
40+
name = "overview",
41+
srcs = [":table.md"],
42+
)

src/cdk/text-field/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package(default_visibility=["//visibility:public"])
22

33
load("@io_bazel_rules_sass//:defs.bzl", "sass_library", "sass_binary")
4-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
4+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
5+
"markdown_to_html")
56

67
ng_module(
78
name = "text-field",
@@ -46,3 +47,8 @@ ng_web_test_suite(
4647
deps = [":text-field_test_sources"],
4748
static_css = [":text_field_prebuilt_scss"]
4849
)
50+
51+
markdown_to_html(
52+
name = "overview",
53+
srcs = [":text-field.md"],
54+
)

src/cdk/tree/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package(default_visibility=["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
3+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
4+
"markdown_to_html")
45

56
ng_module(
67
name = "tree",
@@ -33,3 +34,8 @@ ng_web_test_suite(
3334
name = "unit_tests",
3435
deps = [":tree_test_sources"],
3536
)
37+
38+
markdown_to_html(
39+
name = "overview",
40+
srcs = [":tree.md"],
41+
)

src/lib/autocomplete/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package(default_visibility=["//visibility:public"])
22

33
load("@io_bazel_rules_sass//:defs.bzl", "sass_library", "sass_binary")
4-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
4+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
5+
"markdown_to_html")
56

67
ng_module(
78
name = "autocomplete",
@@ -66,3 +67,8 @@ ng_web_test_suite(
6667
name = "unit_tests",
6768
deps = [":autocomplete_test_sources"],
6869
)
70+
71+
markdown_to_html(
72+
name = "overview",
73+
srcs = [":autocomplete.md"],
74+
)

src/lib/badge/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package(default_visibility=["//visibility:public"])
22

33
load("@io_bazel_rules_sass//:defs.bzl", "sass_library", "sass_binary")
4-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
4+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
5+
"markdown_to_html")
56

67
ng_module(
78
name = "badge",
@@ -40,3 +41,7 @@ ng_web_test_suite(
4041
deps = [":badge_test_sources"],
4142
)
4243

44+
markdown_to_html(
45+
name = "overview",
46+
srcs = [":badge.md"],
47+
)

src/lib/bottom-sheet/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package(default_visibility=["//visibility:public"])
22

33
load("@io_bazel_rules_sass//:defs.bzl", "sass_library", "sass_binary")
4-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
4+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
5+
"markdown_to_html")
56

67
ng_module(
78
name = "bottom-sheet",
@@ -59,3 +60,7 @@ ng_web_test_suite(
5960
deps = [":bottom_sheet_test_sources"],
6061
)
6162

63+
markdown_to_html(
64+
name = "overview",
65+
srcs = [":bottom-sheet.md"],
66+
)

src/lib/button-toggle/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package(default_visibility=["//visibility:public"])
22

33
load("@io_bazel_rules_sass//:defs.bzl", "sass_library", "sass_binary")
4-
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
4+
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite",
5+
"markdown_to_html")
56

67
ng_module(
78
name = "button-toggle",
@@ -49,3 +50,7 @@ ng_web_test_suite(
4950
deps = [":button_toggle_test_sources"],
5051
)
5152

53+
markdown_to_html(
54+
name = "overview",
55+
srcs = [":button-toggle.md"],
56+
)

0 commit comments

Comments
 (0)