diff --git a/docs/docs/layouts.md b/docs/docs/layouts.md index 256eb6c0..b39368ca 100644 --- a/docs/docs/layouts.md +++ b/docs/docs/layouts.md @@ -85,7 +85,7 @@ This example uses the following code: (defn border-title - [layout] + [size layout] # Get the NodeID of the node the user is attached to (def node (layout/attach-id layout)) (if diff --git a/justfile b/justfile index 9f784141..f12c7148 100644 --- a/justfile +++ b/justfile @@ -46,6 +46,15 @@ docs-build-assets: rm -rf docs/.docusaurus cd docs && npm run build +# Validate the Janet code examples embedded in the docs, the same check +# CI runs. Clears the Docusaurus/webpack caches first so the markdown +# preprocessor actually re-runs (otherwise cached output is reused and +# the examples are silently skipped). Skips story asset generation for +# speed. +docs-validate: + rm -rf docs/.docusaurus docs/node_modules/.cache + cd docs && CY_SKIP_ASSETS=1 npm run build + api: go run ./cmd/docs/main.go diff --git a/pkg/cy/api/docs-signal.md b/pkg/cy/api/docs-signal.md index cfbfee72..50b75e09 100644 --- a/pkg/cy/api/docs-signal.md +++ b/pkg/cy/api/docs-signal.md @@ -23,6 +23,7 @@ Optional named parameters: - `:timeout` (number, default 0): Maximum number of seconds to wait. A value of 0 means wait indefinitely. Returns an error if the timeout is reached. ```janet +# ignore # Wait with a 10-second timeout (def result (signal/wait :my-channel :timeout 10)) (print result)