From 370a9d7b78376fdb3f34d6507025c0a6e7898a25 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Mon, 6 Dec 2021 15:47:17 +0000 Subject: [PATCH] Mark dartdoc deprecated Mark the `dartdoc` command as deprecated. It's being replaced by the `dart doc` command. Part of https://github.com/dart-lang/sdk/issues/44610 Change-Id: Ia0607cb53ef526388a749acb735fd6145149334e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221948 Reviewed-by: Samuel Rawlins Commit-Queue: Michael Thomsen --- CHANGELOG.md | 9 +++++++++ sdk/bin/dartdoc | 2 ++ sdk/bin/dartdoc.bat | 2 ++ 3 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c483291e49..79ffbe825d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,15 @@ [an issue]: https://github.com/dart-lang/sdk/issues/new +- **Breaking Change** [#46100](https://github.com/dart-lang/sdk/issues/46100): + The standalone `dartdoc` tool has been + marked deprecated as previously announced. + Its replacement is the `dart doc` command. + Should you find any issues, or missing features, in the replacement + command, kindly file [an issue][]. + +[an issue]: https://github.com/dart-lang/sdk/issues/new + #### Linter Updated the Linter to `1.15.0`, which includes changes that diff --git a/sdk/bin/dartdoc b/sdk/bin/dartdoc index f7ad6828eeb..b7817c8503a 100755 --- a/sdk/bin/dartdoc +++ b/sdk/bin/dartdoc @@ -3,6 +3,8 @@ # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. +echo "Warning: 'dartdoc' is deprecated. Please use 'dart doc'." 1>&2 + function follow_links() { file="$1" while [ -h "$file" ]; do diff --git a/sdk/bin/dartdoc.bat b/sdk/bin/dartdoc.bat index 876eb0e2a4e..ea32a87e897 100644 --- a/sdk/bin/dartdoc.bat +++ b/sdk/bin/dartdoc.bat @@ -3,6 +3,8 @@ REM Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file REM for details. All rights reserved. Use of this source code is governed by a REM BSD-style license that can be found in the LICENSE file. +echo Warning: 'dartdoc' is deprecated. Please use 'dart doc'. 1>&2 + setlocal rem Handle the case where dart-sdk/bin has been symlinked to. set DIR_NAME_WITH_SLASH=%~dp0