Skip to content

Commit

Permalink
Make example's README.md priority over any dart file in the examples …
Browse files Browse the repository at this point in the history
…directory.
  • Loading branch information
isoos committed Dec 27, 2024
1 parent 0e2e647 commit 30d0213
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.22.18-dev

- Make example's `README.md` priority over any dart file in the examples directory.

## 0.22.17

- Fixed lower dependency constraint for `cli_util`.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/maintenance.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:json_annotation/json_annotation.dart';
/// Returns the candidates in priority order to display under the 'Example' tab.
List<String> exampleFileCandidates(String package) {
return <String>[
'example/README.md',
'example/example.md',
'example/lib/main.dart',
'example/bin/main.dart',
Expand All @@ -20,7 +21,6 @@ List<String> exampleFileCandidates(String package) {
'example/lib/example.dart',
'example/bin/example.dart',
'example/example.dart',
'example/README.md',
];
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pana
description: PAckage aNAlyzer - produce a report summarizing the health and quality of a Dart package.
version: 0.22.17
version: 0.22.18-dev
repository: https://github.com/dart-lang/pana
topics:
- tool
Expand Down

0 comments on commit 30d0213

Please sign in to comment.