diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index 521b03edc4..bc6345dbff 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -21,4 +21,4 @@ jobs: run: npm run bootstrap - name: Build documentation working-directory: ./docs - run: npm ci && npm run build + run: npm ci && npm run build && ./api-docs-smoke-test.sh diff --git a/docs/api-docs-smoke-test.sh b/docs/api-docs-smoke-test.sh new file mode 100755 index 0000000000..86ea8b1a6b --- /dev/null +++ b/docs/api-docs-smoke-test.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# If TypeDoc succeeds, it creates the directory and generates multiple markdown files within it + +if [ ! -d "docs/usage/sdk/api" ]; then + exit 1 +fi \ No newline at end of file