validate-pr

作者: flutter

在本地暂存Flutter站点。这包括检查失效链接、验证摘录、更新格式,以及提供开发站点的服务。

npx skills add https://github.com/flutter/website --skill validate-pr

Validate the site

Sync code excerpts

Ensure that any changed code excerpts are properly run and synced to the Markdown files:

dart run dash_site refresh-excerpts

Update formatting

Update the formatting of the site examples and tools to ensure they follow the official Dart format:

dart run dash_site format-dart

Check for broken links

Run the following command to check for any unlinked or broken Markdown link references in the site output:

dart run dash_site check-link-references

If any broken links are found, try to patch them or alert the user.