diff --git a/dev/bots/docs.sh b/dev/bots/docs.sh index d6837fd361bc5a..08374e7e4c24ad 100755 --- a/dev/bots/docs.sh +++ b/dev/bots/docs.sh @@ -116,7 +116,7 @@ function generate_docs() { # Install and activate the snippets tool, which resides in the # assets-for-api-docs repo: # https://github.com/flutter/assets-for-api-docs/tree/master/packages/snippets - "$DART" pub global activate snippets 0.4.0 + "$DART" pub global activate snippets 0.4.2 # This script generates a unified doc set, and creates # a custom index.html, placing everything into DOC_DIR. diff --git a/dev/snippets/config/skeletons/dartpad-sample.html b/dev/snippets/config/skeletons/dartpad-sample.html index 9afc6233d902ea..d8ce7cafd31eb4 100644 --- a/dev/snippets/config/skeletons/dartpad-sample.html +++ b/dev/snippets/config/skeletons/dartpad-sample.html @@ -13,7 +13,7 @@
{@end-inject-html} \ No newline at end of file diff --git a/dev/tools/create_api_docs.dart b/dev/tools/create_api_docs.dart index 12c49deb7d6f3b..150204cc1aa800 100644 --- a/dev/tools/create_api_docs.dart +++ b/dev/tools/create_api_docs.dart @@ -742,14 +742,13 @@ class DartdocGenerator { // Check a "dartpad" example, any one will do, and check for the correct URL // arguments. - // Just use "master" for any branch other than the LUCI_BRANCH. + // Just use "main" for any branch other than the LUCI_BRANCH. final String? luciBranch = platform.environment['LUCI_BRANCH']?.trim(); - final String expectedBranch = luciBranch != null && luciBranch.isNotEmpty ? luciBranch : 'master'; + final String expectedBranch = luciBranch != null && luciBranch.isNotEmpty ? luciBranch : 'main'; final List