Skip to content

Commit aa50c40

Browse files
committed
Merge pull request #1080 from keertip/publish
publish 0.8.5
2 parents 109000c + e4fab17 commit aa50c40

File tree

5 files changed

+27
-18
lines changed

5 files changed

+27
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## 0.8.5
2-
* [enhancement] do not document if there is a <nodoc> in the doc comment.
2+
* [enhancement] do not document if there is a &lt;nodoc> in the doc comment.
3+
* [bug]link typdefs when used as parameters
4+
* [bug] fix issue with processing &lt;pre> tags
5+
* [health] run tests only once on travis
6+
* [health] speed up dartdoc with caching and upgrade to latest analyzer package
37

48
## 0.8.4
59
* [enhancement] Only include generator metadata in the package `index.html` file.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ The following options are used only when generating docs for the Dart SDK.
121121
- `--sdk-docs` Generate only docs for the Dart SDK.
122122
- `--sdk-readme=<file>` Specify the README file for the Dart SDK.
123123

124+
## Excluding from documentation
125+
126+
dartdoc will not generate documentation for a Dart element and its children that has
127+
the `<nodoc>` tag in the documentation comment.
128+
124129
## Issues and bugs
125130

126131
Please file reports on the [GitHub Issue Tracker][].

lib/dartdoc.dart

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import 'package:analyzer/src/generated/sdk.dart';
2222
import 'package:analyzer/src/generated/sdk_io.dart';
2323
import 'package:analyzer/src/generated/source.dart';
2424
import 'package:analyzer/src/generated/source_io.dart';
25-
2625
import 'package:path/path.dart' as p;
2726

2827
import 'src/generator.dart';
@@ -39,7 +38,7 @@ export 'src/package_meta.dart';
3938

4039
const String name = 'dartdoc';
4140
// Update when pubspec version changes.
42-
const String version = '0.8.4-dev';
41+
const String version = '0.8.5';
4342

4443
final String defaultOutDir = p.join('doc', 'api');
4544

@@ -218,15 +217,6 @@ class DartDoc {
218217
}
219218
}
220219

221-
/// The results of a [DartDoc.generateDocs] call.
222-
class DartDocResults {
223-
final PackageMeta packageMeta;
224-
final Package package;
225-
final Directory outDir;
226-
227-
DartDocResults(this.packageMeta, this.package, this.outDir);
228-
}
229-
230220
/// This class is returned if dartdoc fails in an expected way (for instance, if
231221
/// there is an analysis error in the library).
232222
class DartDocFailure {
@@ -237,19 +227,25 @@ class DartDocFailure {
237227
String toString() => message;
238228
}
239229

230+
/// The results of a [DartDoc.generateDocs] call.
231+
class DartDocResults {
232+
final PackageMeta packageMeta;
233+
final Package package;
234+
final Directory outDir;
235+
236+
DartDocResults(this.packageMeta, this.package, this.outDir);
237+
}
238+
240239
class _Error implements Comparable {
241240
final AnalysisError error;
242241
final LineInfo lineInfo;
243242
final String projectPath;
244243

245244
_Error(this.error, this.lineInfo, this.projectPath);
246245

247-
int get severity => error.errorCode.errorSeverity.ordinal;
248-
bool get isError => error.errorCode.errorSeverity == ErrorSeverity.ERROR;
249-
String get severityName => error.errorCode.errorSeverity.displayName;
250246
String get description => '${error.message} at ${location}, line ${line}.';
247+
bool get isError => error.errorCode.errorSeverity == ErrorSeverity.ERROR;
251248
int get line => lineInfo.getLocation(error.offset).lineNumber;
252-
253249
String get location {
254250
String path = error.source.fullName;
255251
if (path.startsWith(projectPath)) {
@@ -258,6 +254,10 @@ class _Error implements Comparable {
258254
return path;
259255
}
260256

257+
int get severity => error.errorCode.errorSeverity.ordinal;
258+
259+
String get severityName => error.errorCode.errorSeverity.displayName;
260+
261261
int compareTo(_Error other) {
262262
if (severity == other.severity) {
263263
int cmp = error.source.fullName.compareTo(other.error.source.fullName);

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.8.5-dev
3+
version: 0.8.5
44
author: Dart Team <[email protected]>
55
description: A documentation generator for Dart.
66
homepage: https://github.com/dart-lang/dartdoc

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.8.4-dev">
7+
<meta name="generator" content="made with love by dartdoc 0.8.5">
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)