Bump snippets to 0.2.3, fix redundant global activate in docs.sh (#88123)

This commit is contained in:
Greg Spencer 2021-08-12 17:37:05 -07:00 committed by GitHub
parent b860982938
commit 2a42069b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -19,7 +19,7 @@ import 'package:path/path.dart' as path;
import 'package:watcher/watcher.dart';
// If you update this version, also update it in dev/bots/docs.sh
const String _snippetsActivateVersion = '0.2.2';
const String _snippetsActivateVersion = '0.2.3';
final String _flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script))));
final String _defaultFlutterPackage = path.join(_flutterRoot, 'packages', 'flutter', 'lib');

View File

@ -26,13 +26,7 @@ function generate_docs() {
# assets-for-api-docs repo:
# https://github.com/flutter/assets-for-api-docs/tree/master/packages/snippets
# >>> If you update this version, also update it in dev/bots/analyze_sample_code.dart <<<
"$PUB" global activate snippets 0.2.2
# 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
# >>> If you update this version, also update it in dev/bots/analyze_sample_code.dart <<<
"$PUB" global activate snippets 0.2.1
"$PUB" global activate snippets 0.2.3
# This script generates a unified doc set, and creates
# a custom index.html, placing everything into dev/docs/doc.