Skip to content

Commit 7b2ba28

Browse files
authored
[stardoc] Update stardoc to 0.7.0 (#1214)
* [stardoc] Update stardoc to 7.0.0 Of special note: > The Markdown renderer now uses Google EscapeVelocity instead of Apache Velocity for templating. The templating engines are almost compatible, with the exception of escapes in string literals: if in your template you had a string literal with a character escape, you would need to expand it. [Release Notes for 0.6.0](https://github.com/bazelbuild/stardoc/releases/tag/0.6.0) "almost", indeed. :/ fixes #1203 * Move docs test to bzlmod only * make are the docs upto date manual * Stop using custom template * Update anvil? * exclude anvil
1 parent cff2e6f commit 7b2ba28

File tree

8 files changed

+353
-364
lines changed

8 files changed

+353
-364
lines changed

.bazelci/presubmit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ tasks:
5656
stardoc:
5757
name: Stardoc api documentation
5858
platform: ubuntu1804
59+
build_flags:
60+
- "--enable_bzlmod=true"
5961
build_targets:
6062
- //kotlin:stardoc
6163
test_targets:

BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ ktlint_config(
3636
test_suite(
3737
name = "all_tests",
3838
tests = [
39-
"//docs:are_docs_up_to_date_test",
4039
"//src/test/kotlin/io/bazel/kotlin:assertion_tests",
4140
"//src/test/kotlin/io/bazel/kotlin/builder:builder_tests",
4241
"//src/test/kotlin/io/bazel/kotlin/integration:integration_tests",

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ maven.install(
9090
use_repo(maven, "kotlin_rules_maven", "unpinned_kotlin_rules_maven")
9191

9292
bazel_dep(name = "rules_pkg", version = "0.7.0")
93-
bazel_dep(name = "stardoc", version = "0.5.6", repo_name = "io_bazel_stardoc")
93+
bazel_dep(name = "stardoc", version = "0.7.0", repo_name = "io_bazel_stardoc")
9494
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
9595

9696
bazel_dep(name = "rules_testing", version = "0.5.0", dev_dependency = True)

docs/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ sh_test(
99
"kotlin.md",
1010
"//kotlin:stardoc",
1111
],
12+
tags = ["manual"],
1213
)

docs/kotlin.md

Lines changed: 347 additions & 316 deletions
Large diffs are not rendered by default.

examples/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ genrule(
7777
"*",
7878
# Node is currently broken.
7979
"node/**",
80-
# Jetpack compose is in an ambigious state due to the android rules migration
81-
#"jetpack_compose/**",
80+
# Anvil is broken by a verison upgrade.
81+
"anvil/**",
8282
],
8383
)
8484
}

kotlin/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ release_archive(
4040
name = doc,
4141
out = "%s.md" % doc,
4242
input = "%s.bzl" % doc,
43-
rule_template = "//kotlin:doc-templates/rule.vm",
4443
deps = [
4544
"//kotlin/internal",
4645
],

kotlin/doc-templates/rule.vm

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)