-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
The dartdoc tool needs to be removed as a standalone tool in the SDK.
Checklist:
- 2.16 - Add new
dart doc
command: https://dart-review.googlesource.com/c/sdk/+/220744 - 2.16 - Add deprecation warning to
bin/dartdoc
: https://dart-review.googlesource.com/c/sdk/+/221948 - 2.17, beta 1 - Remove
bin/dartdoc
Possible alternatives include:
1) Simply deprecating/deleting it and taking no further action, requiring users to use pub global activate dartdoc to install a package to document code. This is a straightforward approach that matches with recommended best practice for using dartdoc.
2) Deprecating the standalone tool, and replacing it with a wrapper inside dartdev that uses pub global activate internally to install dartdoc, then pass dartdoc the command line parameters.
3) Deprecating the standalone tool, and replacing it with a full version of dartdoc linked into dartdev as a library.
2 and 3 look largely the same to the user, 2 being more fragile and requiring network access but also more compact for SDK size.
My inclination is to go with option 1, funneling all users to the pub package.
edit: option 3 was chosen.
cc @mit-mit, @devoncarew, @bkonyi for input