Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Include usage information in generated docs #4370

Merged
merged 3 commits into from
May 23, 2023

Conversation

parlough
Copy link
Collaborator

@parlough parlough commented May 19, 2023

Eventually moving away from the site, but since it's still used and referenced, doesn't hurt to add some usage information.

Staged example: https://parlough-linter.web.app/lints/unnecessary_late.html

Example of usage information for unnecessary_late

Closes dart-lang/sdk#59141

@coveralls
Copy link

coveralls commented May 19, 2023

Coverage Status

Coverage: 96.44%. Remained the same when pulling 7f1de74 on parlough:feature/usage-information into dfef6b2 on dart-lang:main.

Copy link
Contributor

@pq pq left a comment

Choose a reason for hiding this comment

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

Very nice!

@pq pq requested review from bwilkerson and MaryaBelanger May 19, 2023 22:33
Copy link
Contributor

@MaryaBelanger MaryaBelanger left a comment

Choose a reason for hiding this comment

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

Nice! I think I'm a little confused, though. For someone to end up seeing this new "Usage" section, wouldn't it be because the lint popped up for them (so, because they already are using it)? I'm guessing there is another use case for these docs; like; are users browsing the linter docs to identify lints they might want to enable?

@parlough
Copy link
Collaborator Author

parlough commented May 22, 2023

Yeah I find that many users are still using this site to find lints as well. Perhaps users will share links to lints here too. For the users with the lint already, that's why I put usage at the bottom.

I'm not going to worry about moving use cases of this site to dart.dev until our improvements later on.

@pq pq merged commit 27b46ce into dart-archive:main May 23, 2023
@parlough parlough deleted the feature/usage-information branch May 23, 2023 17:33
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Aug 23, 2023
* Include usage information in generated docs

* Adjust wording
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Lint docs should include installation instructions / example of usage
4 participants