-
Notifications
You must be signed in to change notification settings - Fork 700
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
Implement individual linter rule pages #4999
Conversation
Visit the preview URL for this PR (updated for commit f5ea40b): https://dart-dev--pr4999-feature-linter-indiv-zetj76b0.web.app (expires Tue, 04 Jul 2023 17:30:35 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: d851bc446d3c4d7394c5406c6f07255afc7075f3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know the infrastructure being used well enough to catch problems, so if there are areas of concern you'll probably want a review from someone else.
This is really cool. The new structure and navigation between pages feels fluid and looks great. Clutter is significantly down. For my own understanding, are the individual lint pages actually created (like, under I'm wondering about the URLs. I was expecting the actual URL to be |
This was a bit tricky to get working properly and I plan to document it as I improve the functionality, especially since I hope to make it generic enough to support diagnostic messages too. The summary is that they are generated automatically during the Jekyll build (currently from the For a longer explanation: The Jekyll plugin in
I tried to keep it the same as before intentionally, as I feel it still fits within the other |
Nope, your explanation makes sense so let's keep it the way you've set it up so far.
Couple more questions regarding this paragraph (but feel free to merge in the meantime). I know this design/plan might not be fully figured out yet, but wondering if it is/what you're thinking:
I'm still catching up on notes from our last meeting / what you worked on while I was out, sorry I keep asking you to re-explain everything! I'll be caught up soon, and will also sync with Brian if these questions are beyond your scope of the project 🤞 |
Yes that is what I'm thinking. I don't think we've fully decided where the source justification content will live or in what format, but it sounds like it may be better in the SDK so it can be used there as well. I'm not exactly sure when, but perhaps when you hover a linter rule or whatever. In the meantime, it is still coming from the machine-generated file on
Similar to the previous question, it's not clear where we will store the content eventually. But most likely, the format and layout will continue to be adjustable and controllable in this repo at the very least. |
This PR is meant to finalize work to make dart.dev a satisfactory replacement for [`dart-lang.github.io/linter/`](https://dart-lang.github.io/linter/) while `dart-lang/linter` moves to the SDK and we work on consolidating and improving documentation (dart-lang#4498). It does this by (staged links after colon (`:`)): - Updating the information on dart.dev/lints for the latest state of the linter: [/lints](https://dart-dev--pr4999-feature-linter-indiv-zetj76b0.web.app/tools/linter-rules) - Making dart.dev/lints an index page rather than including all information: [/lints](https://dart-dev--pr4999-feature-linter-indiv-zetj76b0.web.app/tools/linter-rules) - Moving the long-form lint rule documentation to individual pages found at `dart.dev/lints/<rule>`: [/lints/avoid_dynamic_calls](https://dart-dev--pr4999-feature-linter-indiv-zetj76b0.web.app/lints/avoid_dynamic_calls) - It does this by using a Jekyll page generator based on `linter_rules.json`. - Adding a textual reference pointing to the recently released all linter rules page (dart-lang@38973de) found at: [/lints/all](https://dart-dev--pr4999-feature-linter-indiv-zetj76b0.web.app/lints/all) - Updating and links and references for these previous changes (mostly Effective Dart). Contributes to dart-lang/linter#4460, dart-lang#4498, dart-lang#4499 **Note:** This is an intermediate step and doesn't aim to improve the formatting or style of the information on the index or individual pages. That will be part of follow-up work as we work on improvements to the diagnostic linter rule documentation.
This PR is meant to finalize work to make dart.dev a satisfactory replacement for
dart-lang.github.io/linter/
whiledart-lang/linter
moves to the SDK and we work on consolidating and improving documentation (#4498).It does this by (staged links after colon (
:
)):dart.dev/lints/<rule>
: /lints/avoid_dynamic_callslinter_rules.json
.Contributes to dart-lang/linter#4460, #4498, #4499
Note: This is an intermediate step and doesn't aim to improve the formatting or style of the information on the index or individual pages. That will be part of follow-up work as we work on improvements to the diagnostic linter rule documentation.