aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-19 05:16:50 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-19 05:16:50 +0300
commitfe53984c4092ef00cab51b1ddd77c5b890786670 (patch)
tree278ad736c20a5eb9f4c3d8cc77a2a71383f831fe /justfile
parentee6a8f9411a3d8f0105ed5d793bc44dafcd9ce2b (diff)
docs: stage website docs for next release
Diffstat (limited to 'justfile')
-rw-r--r--justfile22
1 files changed, 19 insertions, 3 deletions
diff --git a/justfile b/justfile
index 3c56435e..01b387a1 100644
--- a/justfile
+++ b/justfile
@@ -51,9 +51,25 @@ release-docs-check:
exit 1; \
fi; \
done
- @test -f website/src/content/docs/configuration.mdx
- @test -f website/src/content/docs/integrations.mdx
- @test -f website/src/content/docs/socket-api.mdx
+ @test -d docs/next/website/src/content/docs
+ @for file in website/src/content/docs/*.mdx; do \
+ staged="docs/next/website/src/content/docs/$$(basename "$$file")"; \
+ if [ ! -f "$$staged" ]; then \
+ echo "error: $$staged is missing; docs/next/website/src/content/docs must mirror website/src/content/docs"; \
+ exit 1; \
+ fi; \
+ if ! diff -u "$$file" "$$staged"; then \
+ echo "error: $$file differs from $$staged; finalize website docs before releasing"; \
+ exit 1; \
+ fi; \
+ done
+ @for file in docs/next/website/src/content/docs/*.mdx; do \
+ released="website/src/content/docs/$$(basename "$$file")"; \
+ if [ ! -f "$$released" ]; then \
+ echo "error: $$file has no matching released website doc"; \
+ exit 1; \
+ fi; \
+ done
# Finalize changelog, bump version, commit, tag, push, and trigger the GitHub Release workflow (usage: just release 0.1.1)
release version: