From fca9db20520f47a45c1cad8ffb7c751ab681e0b5 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Wed, 9 Feb 2022 16:43:39 +0100 Subject: [PATCH] Back to `dartdoc` due to missing options --- docs/tool/ci_build.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/tool/ci_build.dart b/docs/tool/ci_build.dart index 6ee3f4f57..7caaa2992 100644 --- a/docs/tool/ci_build.dart +++ b/docs/tool/ci_build.dart @@ -79,10 +79,11 @@ Future _createApiDocumentation(Directory output) async { // Dartdoc supports %r% for the revision, %f% for the file name and %l% for // the line number. const source = 'https://github.com/simolus3/moor/blob/%r%/%f%/#L%l%'; + // todo: Use `dart doc` after https://github.com/dart-lang/sdk/issues/46100#issuecomment-1033899215 + // gets clarified. final dartDoc = await Process.start( - 'dart', + 'dartdoc', [ - 'doc', '--rel-canonical-prefix=https://pub.dev/documentation/drift/latest', '--link-to-source-revision=$rev', '--link-to-source-root=..',