Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand documentation of dart doc #5494

Merged
merged 13 commits into from
Feb 15, 2024
Merged

Expand documentation of dart doc #5494

merged 13 commits into from
Feb 15, 2024

Conversation

parlough
Copy link
Member

@parlough parlough commented Jan 30, 2024

@parlough parlough changed the title Expand documentation of dart doc Expand documentation of dart doc Jan 30, 2024
@dart-github-bot
Copy link
Collaborator

dart-github-bot commented Jan 30, 2024

Visit the preview URL for this PR (updated for commit 6f97a83):

https://dart-dev--pr5494-feat-expanded-dart-doc-docs-lpxu7nra.web.app

@parlough parlough force-pushed the feat/expanded-dart-doc-docs branch from 87fb78b to 2b9a010 Compare January 30, 2024 03:05
@parlough parlough force-pushed the feat/expanded-dart-doc-docs branch from 2b9a010 to 2c1cee8 Compare January 30, 2024 03:06
@parlough parlough requested a review from srawlins January 30, 2024 03:22
Copy link
Member

@srawlins srawlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great troubleshooting text! I love it, thanks @parlough !

Copy link
Contributor

@atsansone atsansone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@parlough : This could use some revision for readability and Google Style. Good work in the aggregate, though!

Comment on lines 127 to 128
`dart doc` is also used to generate the API reference documentation for
the Dart core libraries.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Condition, then instruction per GSG.

Suggested change
`dart doc` is also used to generate the API reference documentation for
the Dart core libraries.
To generate the API documentation for the Dart core libraries,
you can also use `dart doc`.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't something end-users (generally) do. This is something that's done by the SDK release infrastructure. I'm trying to draw attention to the fact that the SDK's own API docs use the same tooling. Then lead into how to view it (next sentence).

Any suggestions considering that context?

The following are some common issues experienced with
documentation generated using `dart doc`,
as well as suggestions to resolve them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: The following sentences should be simplified. Make them more concise. Also, consider changing the problems and solutions into tables. That would make it easier to skim.

There's also instances of passive voice, redundancy, and equivocation.

Passive voice, sentence is too long, command can't be used as a noun.

The `index.json` file generated by `dart doc` is missing or inaccessible
from the documentation directory or your hosted web server.

Passive voice, command can't be used as a noun.

The URL you are trying to access has incorrect capitalization.
The filenames generated by `dart doc` are case-sensitive,
match the source declarations, and by default have a `.html` extension.

Redundant.

This configuration option is deprecated and set for removal.

Copy link
Member Author

@parlough parlough Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestions here!

I'd like to keep these as distinct headers as I plan to link to them directly from tooling where appropriate. If a user isn't using those links to find them, the headers either in the TOC or through searching will likely be how users find these.

However I'll work on some updates to address your copy suggestions. After that, let me know if you think any further modifications are necessary. Thanks :D

Copy link
Member Author

@parlough parlough Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made some initial adjustments here, but I likely could use some additional guidance, especially for some active voice adjustments. In a few of these cases, there's intentionally no actor as it's trying to non-prescriptively describe that a situation happened to something (like a file).

Thanks for your help here! It's a difficult part for me :)

@parlough parlough requested a review from atsansone February 6, 2024 05:28
Copy link
Contributor

@atsansone atsansone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great work! One nit: Consider using "resemble" instead of "looks like". Very much a nit though. Let it fly!

@parlough parlough merged commit 6c5d2d7 into main Feb 15, 2024
8 checks passed
@parlough parlough deleted the feat/expanded-dart-doc-docs branch February 15, 2024 18:18
atsansone added a commit to atsansone/site-www that referenced this pull request Feb 20, 2024
Contributes to dart-lang/sdk#54721 and
dart-lang#4347

---------

Co-authored-by: Anthony Sansone <atsansone@users.noreply.github.com>
atsansone added a commit to atsansone/site-www that referenced this pull request Mar 22, 2024
Contributes to dart-lang/sdk#54721 and
dart-lang#4347

---------

Co-authored-by: Anthony Sansone <atsansone@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants