Commit 22fe5db9 authored by Devon Carew's avatar Devon Carew Committed by GitHub

peg dartdoc to a specific version (#5644)

* peg dartdoc to a specific version

* add some documentation

* apply the fix to dev/bots/docs instead
parent 119758b8
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
set -e set -e
# Install dartdoc. # Install dartdoc.
pub global activate dartdoc # We peg to this version to work around a bug affecting Flutter in 0.9.7+2.
pub global activate dartdoc 0.9.7+1
# Generate flutter docs into dev/docs/doc/api/. # Generate flutter docs into dev/docs/doc/api/.
(cd dev/tools; pub get) (cd dev/tools; pub get)
......
...@@ -13,7 +13,7 @@ const String kDocRoot = 'dev/docs/doc'; ...@@ -13,7 +13,7 @@ const String kDocRoot = 'dev/docs/doc';
/// This script expects to run with the cwd as the root of the flutter repo. It /// This script expects to run with the cwd as the root of the flutter repo. It
/// will generate documentation for the packages in `//packages/` and write the /// will generate documentation for the packages in `//packages/` and write the
/// documentation to `//dev/docs/doc/api/`. /// documentation to `//dev/docs/doc/api/`.
/// ///
/// This script also updates the index.html file so that it can be placed /// This script also updates the index.html file so that it can be placed
/// at the root of docs.flutter.io. We are keeping the files inside of /// at the root of docs.flutter.io. We are keeping the files inside of
/// docs.flutter.io/flutter for now, so we need to manipulate paths /// docs.flutter.io/flutter for now, so we need to manipulate paths
...@@ -52,7 +52,7 @@ dependencies: ...@@ -52,7 +52,7 @@ dependencies:
if (code != 0) if (code != 0)
exit(code); exit(code);
// Generate the documentation; we require dartdoc >= 0.9.4. // Generate the documentation.
List<String> args = <String>[ List<String> args = <String>[
'global', 'run', 'dartdoc', 'global', 'run', 'dartdoc',
'--header', 'styles.html', '--header', 'styles.html',
......
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