Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .agents/skills/stage-site/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: stage-site
description: >-
Stages the Flutter site locally. This includes checking for broken links,
verifying excerpts, updating formatting, and serving the dev site.
---

# Stage the Flutter site

Before committing changes or reviewing a PR locally,
it is important to stage the site and ensure everything works correctly.
Follow these steps to stage the site:

## 1. Check for broken links

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

```bash
dart run dash_site check-link-references
```

Alternatively, to verify all links between pages on the site work:

```bash
dart run dash_site check-links
```
Comment thread
sfshaza2 marked this conversation as resolved.
Outdated

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

## 2. Sync code excerpts

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

```bash
dart run dash_site refresh-excerpts
```

## 3. Update formatting

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

```bash
dart run dash_site format-dart
```

## 4. Stage the site locally

Finally, serve a local development server of the site so the user can preview the changes:

```bash
dart run dash_site serve
```
Comment thread
sfshaza2 marked this conversation as resolved.
Outdated
Loading