Skip to content

Commit ca61935

Browse files
authored
Revert "Deprecate --resources-dir option. (#3696)" (#3782)
This reverts commit cec45fb.
1 parent 3decf1e commit ca61935

File tree

6 files changed

+8
-14
lines changed

6 files changed

+8
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 8.0.10-dev
2+
3+
* Un-deprecate the `--resources-dir` option.
4+
15
## 8.0.9
26

37
* Deprecate the `missingCodeBlockLanguage` warning. This is replaced with the

dartdoc_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dartdoc:
22
linkToSource:
33
root: '.'
4-
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v8.0.9/%f%#L%l%'
4+
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v8.0.10-dev/%f%#L%l%'

lib/src/dartdoc_options.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,11 +1669,8 @@ List<DartdocOption> createDartdocOptions(
16691669
help:
16701670
'A list of package names to place first when grouping libraries in '
16711671
'packages. Unmentioned packages are placed after these.'),
1672-
// Deprecated. Use of this option is reported.
1673-
// TODO(kallentu): Remove this option.
16741672
DartdocOptionArgOnly<String?>('resourcesDir', null, resourceProvider,
1675-
help: "(deprecated) An absolute path to dartdoc's resources directory.",
1676-
hide: true),
1673+
help: "An absolute path to dartdoc's resources directory.", hide: true),
16771674
DartdocOptionArgOnly<bool>('sdkDocs', false, resourceProvider,
16781675
help: 'Generate ONLY the docs for the Dart SDK.'),
16791676
DartdocOptionArgSynth<String?>('sdkDir',

lib/src/generator/generator_frontend.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ class GeneratorFrontEnd implements Generator {
2727
'longer be supported.',
2828
);
2929
}
30-
if (_generatorBackend.options.resourcesDir != null) {
31-
packageGraph?.defaultPackage.warn(
32-
PackageWarning.deprecated,
33-
message: "The '--resources-dir' option is deprecated, and will soon be "
34-
'removed.',
35-
);
36-
}
3730

3831
await _generatorBackend.generateAdditionalFiles();
3932

lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const packageVersion = '8.0.9';
1+
const packageVersion = '8.0.10-dev';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dartdoc
2-
version: 8.0.9
2+
version: 8.0.10-dev
33
description: A non-interactive HTML documentation generator for Dart source code.
44
repository: https://github.com/dart-lang/dartdoc
55

0 commit comments

Comments
 (0)