You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scripts/check-doc-examples.rb # restish-example shortcodes are valid
246
247
```
247
248
249
+
A plain `hugo --source site --quiet` is a fine quick check while iterating.
248
250
`npm run social-images` parses front matter across `content/en` and can fail
249
-
independently of Hugo, so run the npm build for blog and front-matter changes
250
-
even when the quick Hugo check passes.
251
+
independently of Hugo, so run it for blog and front-matter changes even when
252
+
the quick Hugo check passes.
251
253
252
254
When touching site JavaScript or interactive examples (playground, query
253
-
runner, docs interactions), also run `npm --prefix site test`.
255
+
runner, docs interactions), also run `npm --prefix site test`; CI does not
256
+
run it in the docs job.
254
257
255
258
Also verify new links, check examples against current CLI behavior, grep touched docs for stale `api.example.com` placeholders and leftover `Source material:` sections, and prefer examples that can later be validated against `api.rest.sh` or promoted into tests.
Copy file name to clipboardExpand all lines: AGENTS.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,11 @@ go run ./cmd/restish-docgen --check
21
21
# Validate the docs site after changes under site/ (quick check)
22
22
hugo --source site --quiet
23
23
24
-
# Full CI parity for the docs job: social preview images + Hugo
25
-
# (npm ci needed once; social-images parses content front matter and can fail independently)
26
-
npm --prefix site ci && npm --prefix site run build
24
+
# Full CI parity for the docs job (npm ci needed once; social-images parses
25
+
# content front matter and can fail independently of Hugo)
26
+
npm --prefix site ci
27
+
npm --prefix site run social-images
28
+
hugo --source site --quiet --gc --minify --cacheDir /tmp/hugo_cache
27
29
28
30
# Validate docs examples and links (CI runs both)
29
31
scripts/check-doc-examples.rb
@@ -44,7 +46,7 @@ go test -race ./... # when touching concurrency, streaming,
44
46
# subprocess lifecycle, or shared buffers
45
47
```
46
48
47
-
CI requires all of: `go test ./...`, `go test -tags=integration ./...`, building all five binaries above, `restish-docgen --check`, `scripts/check-doc-links.rb`, `scripts/check-doc-examples.rb`, and the docs-site build (`npm --prefix site ci`, `npm --prefix site run social-images`, then Hugo). A weekly job also executes every docs `restish-example` live against `api.rest.sh`.
49
+
CI requires all of: `go test ./...`, `go test -tags=integration ./...`, building all five binaries above, `go run ./cmd/restish-docgen --check`, `scripts/check-doc-links.rb`, `scripts/check-doc-examples.rb`, and the docs-site build (`npm --prefix site ci`, `npm --prefix site run social-images`, then Hugo). A weekly job also executes every docs `restish-example` live against `api.rest.sh`.
48
50
49
51
### Manual Smoke Test
50
52
@@ -72,7 +74,7 @@ The core design is a `CLI` struct in `internal/cli/cli.go` that owns all state
0 commit comments