Commit 5fee9789 authored by jcollins-g's avatar jcollins-g Committed by GitHub

Add version information to dartdoc footer (#10844)

* Add version information to dartdoc footer

* Add final to variable declaration

* Drop toString()
parent 0e1b652d
......@@ -8,6 +8,7 @@ import 'dart:io';
import 'package:intl/intl.dart';
import 'package:path/path.dart' as path;
import 'update_versions.dart';
const String kDocRoot = 'dev/docs/doc';
......@@ -29,9 +30,12 @@ Future<Null> main(List<String> args) async {
if (path.basename(Directory.current.path) == 'tools')
Directory.current = Directory.current.parent.parent;
final RawVersion version = new RawVersion('VERSION');
// Create the pubspec.yaml file.
final StringBuffer buf = new StringBuffer('''
name: Flutter
version: $version
dependencies:
''');
for (String package in findPackageNames()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment