Skip to content

Commit 648ad06

Browse files
authored
rev version to 0.9.8 (#1284)
* rev version to 0.9.8 * update test package docs
1 parent 41787d0 commit 648ad06

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## unreleased
1+
## 0.9.8
2+
* support for generic methods.
3+
* remove deps on cli_utils and which.
24
* removed some uses of deprecated analyzer APIs
35

46
## 0.9.7+6

lib/dartdoc.dart

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export 'src/package_meta.dart';
4040

4141
const String name = 'dartdoc';
4242
// Update when pubspec version changes.
43-
const String version = '0.9.7+6';
43+
const String version = '0.9.8';
4444

4545
final String defaultOutDir = path.join('doc', 'api');
4646

@@ -73,6 +73,23 @@ void initializeConfig(
7373
includeSource: includeSource);
7474
}
7575

76+
Map<String, List<fileSystem.Folder>> _calculatePackageMap(
77+
fileSystem.Folder dir) {
78+
Map<String, List<fileSystem.Folder>> map = new Map();
79+
var info = package_config.findPackagesFromFile(dir.toUri());
80+
81+
for (String name in info.packages) {
82+
Uri uri = info.asMap()[name];
83+
fileSystem.Resource resource =
84+
PhysicalResourceProvider.INSTANCE.getResource(uri.toFilePath());
85+
if (resource is fileSystem.Folder) {
86+
map[name] = [resource];
87+
}
88+
}
89+
90+
return map;
91+
}
92+
7693
/// Generates Dart documentation for all public Dart libraries in the given
7794
/// directory.
7895
class DartDoc {
@@ -279,23 +296,6 @@ class DartDoc {
279296
}
280297
}
281298

282-
Map<String, List<fileSystem.Folder>> _calculatePackageMap(
283-
fileSystem.Folder dir) {
284-
Map<String, List<fileSystem.Folder>> map = new Map();
285-
var info = package_config.findPackagesFromFile(dir.toUri());
286-
287-
for (String name in info.packages) {
288-
Uri uri = info.asMap()[name];
289-
fileSystem.Resource resource =
290-
PhysicalResourceProvider.INSTANCE.getResource(uri.toFilePath());
291-
if (resource is fileSystem.Folder) {
292-
map[name] = [resource];
293-
}
294-
}
295-
296-
return map;
297-
}
298-
299299
/// This class is returned if dartdoc fails in an expected way (for instance, if
300300
/// there is an analysis error in the library).
301301
class DartDocFailure {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dartdoc
22
# Also update the `version` field in lib/dartdoc.dart.
3-
version: 0.9.7+6
3+
version: 0.9.8
44
author: Dart Team <misc@dartlang.org>
55
description: A documentation generator for Dart.
66
homepage: https://github.com/dart-lang/dartdoc

testing/test_package_docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<meta name="generator" content="made with love by dartdoc 0.9.7+6">
7+
<meta name="generator" content="made with love by dartdoc 0.9.8">
88
<meta name="description" content="test_package API docs, for the Dart programming language.">
99
<title>test_package - Dart API docs</title>
1010

0 commit comments

Comments
 (0)