Commit Graph

172 Commits

Author SHA1 Message Date
Jonah Williams
909400dc4d
Revert "Reorganize and clarify API doc generator" (#132613)
Reverts flutter/flutter#132353

Educated guess that this is causing the docs failures: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8772644466113801713/+/u/Docs/Deploy_docs/Firebase_deploy/stdout
2023-08-16 02:47:26 +00:00
Greg Spencer
899a29f830
Reorganize and clarify API doc generator (#132353)
## Description

This cleans up a lot of issues with the API doc generation.

Here are the main changes:
 - Rename `dartdoc.dart` to `create_api_docs.dart`
 - Move the bulk of the operations out of `dev/bots/docs.sh` into `create_api_docs.dart`.
 - Delete `dashing_postprocess.dart` and `java_and_objc.dart` and incorporate those operations into `create_api_docs.dart`.
 - Refactor the doc generation into more understandable classes
 - Bump the snippets tool version to 0.4.0 (the latest one)
 - Centralize the information gathering about the Flutter repo into the new `FlutterInformation` class.
 - Clean up the directory handling, and convert to using the `file` package for all file and directory paths.
 - Add an `--output` option to docs.sh that specifies the location of the output ZIP file containing the docs.
   - Defaults to placing the output in `dev/docs/api_docs.zip` (i.e. where the previous code generates the file).
 - Moved all document generation into a temporary folder that is removed once the documents are generated, to avoid VSCode and other IDEs trying to index the thousands of HTML and JS files in the docs output.
 - Updated pubspec dependencies.

## Tests
 - Added tests for doc generation.
2023-08-15 22:12:16 +00:00
Janice Collins
29c858adc7
Update flutter to dartdoc 6.3.0 and hide Icons implementation from doc pages (#128442)
This updates dartdoc to 6.3.0.  Release notes are available, here:

https://github.com/dart-lang/dartdoc/releases/tag/v6.3.0

Most important for Flutter are the reduction in the size of generated HTML files (dart-lang/dartdoc#3384) and a new dartdoc directive to hide constant implementations from indicated classes (dart-lang/dartdoc#3398), which fixes the longstanding issue (dart-lang/dartdoc#2657).

I've also added the api documentation zip to `.gitignore` and the `{@hideConstantImplementations}` dartdoc directive to the motivating example.  A screenshot:

![Screenshot 2023-06-07 at 9 54 58 AM](https://github.com/flutter/flutter/assets/14116827/1ad9c1f0-b224-462f-a8e3-706d9858f0d8)

I assert that this change to icons.dart should be test-exempt as existing tests cover whether or not dartdoc directives are recognized or are leaking into HTML, and the impact of adding the directive was tested in dart-lang/dartdoc#3398.
2023-06-08 20:14:23 +00:00
Greg Spencer
5c0eb2d967
Bump Snippet version (#127688)
## Description

Bumps the version for snippets to the latest version.

## Related Issues
 - https://github.com/flutter/flutter/issues/127320

## Tests
 - No test changes needed.
2023-05-26 19:20:59 +00:00
Janice Collins
fb36bba366
Update dartdoc to v6.2.2. (#125650)
This PR updates the dartdoc version to v6.2.2.

Release notes:  https://github.com/dart-lang/dartdoc/releases/tag/v6.2.2

The main impact for Flutter is to update dartdoc to add chips to class and/or mixin pages for class modifiers.  See dart-lang/dartdoc#3391, dart-lang/dartdoc#3402.   This will also be a cherry-pick candidate for 3.1 if it can land in time.

- [ test-exempt ] I added new tests to check the change I am making, or this PR is [test-exempt].
2023-04-27 22:30:06 +00:00
Janice Collins
726b7202a0
Update dartdoc to 6.2.1. (#123420)
Update dartdoc to 6.2.1.
2023-03-24 19:50:57 +00:00
Michael Goderbauer
3f87e808f8
Update dartdoc to 6.2.0 (#123193)
Update dartdoc to 6.2.0
2023-03-22 17:06:25 +00:00
Ian Hickson
6205c110d6
Remove "note that" in our documentation (as per style guide) (#120842)
* lerp documentation

* Remove Note, Note That from repo

* Improve BorderSide documentation.

* apply review comments
2023-02-17 22:27:33 +00:00
Drew Roen
0604a0e1e6
Add a recursive flag to the zip command - currently it is zipping nothing (#117227) 2022-12-16 21:15:20 +00:00
Greg Spencer
96597c25e6
Bump Dartdoc version to 6.1.5 (#117014) 2022-12-13 22:28:01 +00:00
Jason Simmons
b4304dadc5
Update the Dart language version in the pubspec generated by the dartdoc script (#116789) 2022-12-09 11:38:20 -08:00
Siva
48cfe2eb00
Opt dashing_postprocess.dart out of null safety until we figure out why (#116786)
it complains about some library being unsound.
2022-12-09 10:53:39 -08:00
Parker Lougheed
eefbe85c8b
Bump dartdoc to 6.1.4 (#116758) 2022-12-09 04:32:07 +00:00
Parker Lougheed
76f03359b1
Update dartdoc to 6.1.3 (#116474)
No longer generates weird constructor-like calls interspersed.

Fixes https://github.com/dart-lang/dartdoc/issues/3201
2022-12-06 21:10:10 +00:00
godofredoc
c3e5612362
Zip api docs using the repo under test script. (#116437)
This is to move more logic to the repo under test and remove them from
recipes.

Bug: https://github.com/flutter/flutter/issues/115489
2022-12-02 22:46:07 +00:00
Kevin Moore
38a5571e91
Rev dartdoc to 6.1.2 (#112664) 2022-09-29 20:55:30 +00:00
Dan Field
d905fbab0d
Rev dartdoc to 6.1.1 (#111767) 2022-09-16 20:35:49 +00:00
Michael Goderbauer
49a52ae8d1
Bump dartdoc to 6.0.0 (#107194) 2022-07-06 23:24:08 +00:00
Michael Goderbauer
28d817e708
Bump dartdoc to 5.1.2 (#104097) 2022-05-18 17:57:13 -07:00
Michael Goderbauer
0a5a641f8f
Bump snippets tool to 0.3.0 (#103751) 2022-05-13 14:49:26 -07:00
Michael Goderbauer
8bec125aaf
Avoid analyzing API example code twice, clean-up (#103548) 2022-05-11 21:27:45 -07:00
Michael Goderbauer
fe6d09a9ef
Bump Dartdoc to 5.0.1 (#101783) 2022-04-13 09:31:19 -07:00
Greg Spencer
c7643cf54e
Fix samples so that they present properly in the docs (#97224) 2022-02-24 18:51:22 -08:00
Kevin Moore
d1cd614338
dev: Drop domain verification file (#94124) 2021-11-23 16:03:02 -08:00
Janice Collins
b98ed1b39d
Update dartdoc to 4.1.0. (#92446) 2021-10-26 09:03:02 -07:00
Janice Collins
35fe52cb86
Update dartdoc to 4.0.0 (#91252) 2021-10-04 14:08:04 -07:00
Greg Spencer
7b8a3c1bcd
Force building of snippets package executable. (#91110)
This fixes an issue with the Dart Head-Head-Head CI bot, where it was seeing failures because of concurrent execution of the snippets tool.

It adds a single run of the snippets tool right after activation to force the compiling of the package executable, which is what has trouble with concurrent invocation.

This is a temporary measure until dart pub global run is fixed.
2021-10-04 12:17:27 -07:00
Greg Spencer
fd9ce27748
Clean up examples, remove section markers and --template args (#91133)
This does a cleanup of the examples, removing all of the "section" markers and extra comments that we don't need anymore now that the samples are no longer in the source code. It also removes the --template arguments from the {@tool dartpad} and {@tool sample} directives, since those are no longer used. It converts two examples that I discovered were still embedded into linked examples in the examples folder.

I didn't delete the templates from the snippets config folder yet, because there are still embedded samples in the dart:ui package from the engine that use them. Once dart:ui no longer uses the templates, they can be removed.

I bumped the version of the snippets package to pick up a change that allows removal of the --template argument.
2021-10-04 12:16:17 -07:00
Janice Collins
2d909fcc5b
Update dartdoc to v3.1.0. (#90415) 2021-09-24 14:03:07 -07:00
Janice Collins
0353fa282b
Update dartdoc to 3.0.0 (#89603) 2021-09-08 12:32:06 -07:00
Greg Spencer
a7310dc0d4
Eliminate uses of pub executable in docs publishing and sample analysis. (#89181) 2021-08-30 12:16:05 -07:00
Janice Collins
f74be66494
Update dartdoc to 2.0.0. (#88729) 2021-08-23 14:27:04 -07:00
Greg Spencer
2a42069b2a
Bump snippets to 0.2.3, fix redundant global activate in docs.sh (#88123) 2021-08-12 17:37:05 -07:00
Greg Spencer
10e4b04010
Switch document generation to use the snippets package (#87231)
Switch document generation to use the snippets package instead of the snippets code in the Flutter repo. In the process, some bugs in sample code analysis have been fixed, and I've fixed some more errors in the samples.

This will allow the snippets package to be developed separately from the Flutter repo, and reduce the code in the Flutter repo.

The snippets code is deleted in this PR.

I also converted some comments in the snippet templates to be regular comments instead of doc comments, because having a doc comment block before the imports causes the Dart import sorter to lose the comment. They should have been regular comments in the first place.

The snippets package resides in the assets-for-api-docs repo.

The sample analysis has also been converted to be run in parallel, and I've bumped the Dartdoc version to 1.0.2.
2021-08-11 19:48:29 -07:00
Janice Collins
0825f49ed4
Update dartdoc to 1.0.0 (#85549)
This includes some major internal changes that should improve performance (the AOT template compiler) and the new lookup code. The big changes noticeable for Flutter will be resolution of field formal parameters, extension method support, and more consistent disambiguation in comment reference lookups.

While a vast net improvement, this PR will change a few links to point to the wrong place. #85484 will address that after this lands, as there was no good way to specify what the user wanted unambiguously before dartdoc 1.0.0 in a few cases. That PR includes more details on the introduced regressions and link changes.
2021-06-29 14:19:19 -07:00
Janice Collins
e6f2e2a38d
Update dartdoc to 0.45.0 (#84130) 2021-06-07 12:29:05 -07:00
Janice Collins
c5bbe7552a
Update dartdoc to 0.44.0. (#83352) 2021-05-25 13:04:02 -07:00
Janice Collins
cb57480bdd
Update dartdoc to 0.43.0. (#82362) 2021-05-18 08:54:02 -07:00
Janice Collins
82551118b8
Update dartdoc to 0.42.0 (#79795) 2021-04-05 14:09:03 -07:00
Janice Collins
4d062996d3
Update dartdoc to 0.41.0 (#79304) 2021-03-29 21:34:02 -07:00
Janice Collins
b300efcd8f
Update dartdoc to 0.40.0. (#76820) 2021-02-25 15:06:04 -08:00
Janice Collins
d1f78b48ea
Update dartdoc to 0.38.0 (#71935) 2020-12-08 16:13:04 -08:00
Janice Collins
a5519dc75e
Update dartdoc to 0.37.0 (#70882) 2020-11-20 11:18:07 -08:00
Janice Collins
c2054196a7
Update dartdoc to 0.36.2 (#69693) 2020-11-03 12:08:03 -08:00
Janice Collins
dcc8ced8e4
Update to dartdoc 0.36.1 (#68791) 2020-10-22 14:13:50 -07:00
Janice Collins
4a59ee9c31
Updated dartdoc to 0.36.0 (#68641) 2020-10-21 08:47:02 -07:00
godofredoc
f8f6963cd1
Fix docset generation. (#67025)
* Fix docset generation.

* Remove checks to be able to test.

* More logging

* More logging

* More logging.

* more logging.

* More logging.

* Add flags to firebase command.

* Re-enable docset generation.

* Disable firebase step.

* Comment docset to speed up validations.

* Re-enable docset.

* Add back condition to prevent uploading docs from PRs.
2020-10-13 17:06:49 -07:00
Janice Collins
e9a9a6104c
Update dartdoc to 0.35.0 (#67432) 2020-10-07 08:47:05 -07:00
Michael Goderbauer
923eb765f0
Bump dartdoc to 0.34.0 (#66048) 2020-09-22 12:57:13 -07:00
Christopher Fujino
d6e308c578
Don't fail docs-linux on release branches (#64203) 2020-08-19 18:16:05 -07:00