Skip to content

Commit

Permalink
Prepare for dartdoc 0.41.0. (#2589)
Browse files Browse the repository at this point in the history
* Prepare for dartdoc 0.41.0.

* Revert everything but analyzer

* Disable coverage?

* Turn back on coverage to get a good debug log

* await coverage before quitting

* Re-update all packages and disable coverage

* Update changelog

* Update changelog One More Time
  • Loading branch information
jcollins-g authored Mar 29, 2021
1 parent a9f8e07 commit e2d010e
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 21 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,21 @@ jobs:
run: ./tool/travis.sh
env:
DARTDOC_BOT: ${{ matrix.job }}
COVERAGE_TOKEN: true # this needs to be set to enable coverage
# TODO(jcollins-g): uncomment after #2590 is fixed
#COVERAGE_TOKEN: true # this needs to be set to enable coverage
- name: ${{ matrix.job }}
if: runner.os == 'Windows' && matrix.job == 'main'
run: pub run grinder buildbot
env:
DARTDOC_BOT: ${{ matrix.job }}
- id: coverage
name: Upload coverage
if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info
- name: Echo coveralls api result
if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
run: echo ${{ steps.coverage.outputs['coveralls-api-result'] }}
# TODO(jcollins-g): uncomment after #2590 is fixed
#- id: coverage
# name: Upload coverage
# if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: lcov.info
#- name: Echo coveralls api result
# if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
# run: echo ${{ steps.coverage.outputs['coveralls-api-result'] }}
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## 0.41.0
* Write out doc files for static methods on extensions. (#2588, #2591)
* Fix a crash where dartdoc tried to create a duplicate field in the event
a static const extension member is declared. (#2585)
* Implementation of generic type aliases. (#2584, #2575, #2558)
* BREAKING CHANGE: Refactors to better support new type handling.
With #2573 and changes building on it, `linkedReturnType` must be changed
to either `modelType` or `modelType.returnType` in templates. (#2583, #2573)
* Add an option for setting arguments for tool compilation. (#2576)
* Make signature of categoriesWithPublicLibraries more accurate. (#2571)
* Improve analysis performance by avoiding hints/lints when resolving
files. (#2566)
* Additional implementation for Mustachio. (#2568, #2555, #2554, #2549, #2547,
#2546)
* Update highlight.js to include plaintext support and optionally, warn if the
user does not specify a language on code blocks. (#2560, #2559, #2593)
* Fix invalid json generation on an empty categories list. (#2550)
* Many minor internal cleanups related to new lints and ecosystem changes.

## 0.40.0
* More implementation added for Mustachio (#2481, #2482, #2488, #2491, #2497,
#2498, #2512, #2515, #2519, #2523, #2525)
Expand Down
2 changes: 1 addition & 1 deletion dartdoc_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dartdoc:
linkToSource:
root: '.'
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v0.40.0/%f%#L%l%'
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v0.41.0/%f%#L%l%'
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Generated code. Do not modify.
const packageVersion = '0.40.0';
const packageVersion = '0.41.0';
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: dartdoc
# Run `grind build` after updating.
version: 0.40.0
version: 0.41.0
description: A non-interactive HTML documentation generator for Dart source code.
homepage: https://github.com/dart-lang/dartdoc
environment:
sdk: '>=2.11.99 <3.0.0'

dependencies:
analyzer: ^1.2.0
analyzer: ^1.3.0
args: ^2.0.0
charcode: ^1.2.0
collection: ^1.2.0
Expand All @@ -27,12 +27,12 @@ dependencies:

dev_dependencies:
async: ^2.0.8
build: ^1.5.0
build: ^2.0.0
build_runner: ^1.10.0
build_test: ^1.3.0
build_test: ^2.0.0
build_version: ^2.0.1
coverage: ^0.15.2
dart_style: ^1.3.9
coverage: ^1.0.2
dart_style: ^2.0.0
grinder: ^0.9.0-nullsafety.0
http: ^0.13.0
pedantic: ^1.11.0
Expand Down
3 changes: 1 addition & 2 deletions tool/subprocess_launcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ class CoverageSubprocessLauncher extends SubprocessLauncher {
perLine: parsePortAsString);

if (coverageEnabled) {
// ignore: unawaited_futures
super.runStreamed('pub', [
await super.runStreamed('pub', [
'run',
'coverage:collect_coverage',
'--wait-paused',
Expand Down

0 comments on commit e2d010e

Please sign in to comment.