Repository navigation
Conversation
- Statically expands 1,197 unrendered {{site.repo.*}} and {{site.github}}
tokens in archived Flutter and DevTools release notes.
- Updates blog.flutter.dev links to flutter.dev/blog and removes
trailing-slash or legacy redirect hops across docs and blog content.
There was a problem hiding this comment.
Code Review
This pull request performs a comprehensive cleanup of links across the documentation and blog posts, updating outdated paths, standardizing relative URLs by removing trailing slashes, and replacing absolute blog links with relative ones. It also restructures paths for several sections, including AI, DevTools, and platform adaptations, and replaces template-based repository links with direct GitHub URLs. A review comment suggests updating an additional instance of /ai/create-with-ai to /ai/get-started in the 2025 highlights blog post to avoid a redirect hop and ensure consistency with the other updates in this PR.
|
Staged preview of the updated docs.flutter.dev site (updated for commit a91c809): https://flutter-docs-prod--docs-pr14105-gsc-content-links-jvbne8as.web.app |
|
Staged preview of the updated flutter.dev site (updated for commit a91c809): https://flutter-dev-230821--www-pr14105-gsc-content-links-ejuequsd.web.app |
- Strip legacy Medium hex suffixes and map renamed slugs across all 27
docs pages referencing `{{site.flutter-blog}}/...` so updating
`flutter-blog` to `https://flutter.dev/blog` in `site.yml` resolves
to canonical 200 blog URLs instead of 404s.
- Update remaining `/ai/create-with-ai`, `/ai-toolkit`, and `/blog/...`
redirect-hop links in modified blog and release-notes hunks.
- Add `sites/www/test/content_links_test.dart` to verify cross-site
`{{site.flutter-blog}}` slug resolution and `skipTemplateRendering`
Liquid variable expansion invariants.
Add `@TestOn('vm')` so browser test runs (`dart test -p chrome`) in
`sites/www` skip filesystem assertions cleanly.
Replaces unrendered Liquid link variables in archived release notes and updates
internal Markdown and YAML links to their final destinations.
1,197unrendered{{site.repo.*}}and{{site.github}}tokens inskipTemplateRendering: trueFlutter and DevTools release notes that emitted literal{{site.*}}hrefs in built HTML.
blog.flutter.devlinks toflutter.dev/blogand removes trailing-slash or legacy redirect hops acrossdocsandblogcontent.Presubmit checklist
of 80 characters or fewer.