Back to `dartdoc` due to missing options

This commit is contained in:
Simon Binder 2022-02-09 16:43:39 +01:00
parent 51f61a884f
commit fca9db2052
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 3 additions and 2 deletions

View File

@ -79,10 +79,11 @@ Future<void> _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=..',