diff --git a/dev/bots/docs.sh b/dev/bots/docs.sh index d9e2924fb42..b25bdd058b6 100755 --- a/dev/bots/docs.sh +++ b/dev/bots/docs.sh @@ -111,7 +111,7 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then fi # Install and activate dartdoc. -"$PUB" global activate dartdoc 0.29.3 +"$PUB" global activate dartdoc 0.30.2 # This script generates a unified doc set, and creates # a custom index.html, placing everything into dev/docs/doc. diff --git a/dev/tools/dartdoc.dart b/dev/tools/dartdoc.dart index c603aac375c..de2f59e8ac9 100644 --- a/dev/tools/dartdoc.dart +++ b/dev/tools/dartdoc.dart @@ -136,6 +136,7 @@ Future main(List arguments) async { '--link-to-source-root', '../..', '--link-to-source-uri-template', 'https://github.com/flutter/flutter/blob/master/%f%#L%l%', '--inject-html', + '--use-base-href', '--header', 'styles.html', '--header', 'analytics.html', '--header', 'survey.html',