Bump dartdoc to ab98003fc368f484fcc4c055770adea47bc83fbd
Change-Id: I1e1713428bbd5ab713a62aff70d83cc502dde9f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162250
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
diff --git a/DEPS b/DEPS
index 8d2dda6..5e49e15 100644
--- a/DEPS
+++ b/DEPS
@@ -97,7 +97,7 @@
"dart_style_tag": "1.3.7", # Please see the note above before updating.
"chromedriver_tag": "83.0.4103.39",
- "dartdoc_rev" : "b039e21a7226b61ca2de7bd6c7a07fc77d4f64a9",
+ "dartdoc_rev" : "ab98003fc368f484fcc4c055770adea47bc83fbd",
"ffi_rev": "454ab0f9ea6bd06942a983238d8a6818b1357edb",
"fixnum_rev": "16d3890c6dc82ca629659da1934e412292508bba",
"glob_rev": "e9f4e6b7ae8abe5071461cf8f47191bb19cf7ef6",
diff --git a/tools/bots/dart_sdk.py b/tools/bots/dart_sdk.py
index f152233..77daa10 100755
--- a/tools/bots/dart_sdk.py
+++ b/tools/bots/dart_sdk.py
@@ -41,13 +41,16 @@
dart_exe = os.path.join(dart_sdk, 'bin', 'dart')
dartdoc_dart = os.path.join(bot_utils.DART_DIR, 'third_party', 'pkg',
'dartdoc', 'bin', 'dartdoc.dart')
+ footer_text_file = os.path.join(bot_utils.DART_DIR, 'tools', 'bots',
+ 'dartdoc_footer_text.html')
footer_file = os.path.join(bot_utils.DART_DIR, 'tools', 'bots',
'dartdoc_footer.html')
url = 'https://api.dartlang.org/stable'
with bot.BuildStep('Build API docs by dartdoc'):
bot_utils.run([
dart_exe, dartdoc_dart, '--sdk-docs', '--output', dirname,
- '--enable-experiment', 'non-nullable', '--footer', footer_file,
+ '--enable-experiment', 'non-nullable', '--footer-text',
+ footer_text_file, '--footer', footer_file,
'--rel-canonical-prefix=' + url
])
diff --git a/tools/bots/dartdoc_footer_text.html b/tools/bots/dartdoc_footer_text.html
new file mode 100644
index 0000000..6664882
--- /dev/null
+++ b/tools/bots/dartdoc_footer_text.html
@@ -0,0 +1,5 @@
+•
+<span class="copyright no-break">
+ <a href="http://creativecommons.org/licenses/by/4.0/">Site CC BY 4.0</a>
+</span>
+