chore(repo): add raw-docs (#31640)

This PR adds `raw-docs` integration. See here for more details:
https://github.com/nrwl/raw-docs
This commit is contained in:
Jack Hsu 2025-06-19 12:53:01 -04:00 committed by GitHub
parent 460d2114dd
commit ec457f72df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 33 additions and 1 deletions

3
.gitignore vendored
View File

@ -102,3 +102,6 @@ node_modules/
# Task files # Task files
tasks.json tasks.json
tasks/ tasks/
# Raw docs local configuration (machine-specific)
.rawdocs.local.json

10
.rawdocs.json Normal file
View File

@ -0,0 +1,10 @@
{
"include": ["apps/**/*", "libs/**/*", "packages/**/*"],
"exclude": [
"**/*.spec.*",
"**/test/**/*",
"**/__tests__/**/*",
"**/*.test.*",
"node_modules/**/*"
]
}

View File

@ -25,7 +25,8 @@
"e2e": "nx run-many -t e2e --projects ./e2e/*", "e2e": "nx run-many -t e2e --projects ./e2e/*",
"build:wasm": "rustup override set nightly-2025-05-09 && rustup target add wasm32-wasip1-threads && WASI_SDK_PATH=\"$(pwd)/wasi-sdk-23.0-x86_64-linux\" CMAKE_BUILD_PARALLEL_LEVEL=2 LIBSQLITE3_FLAGS=\"-DLONGDOUBLE_TYPE=double\" pnpm exec nx run-many -t build-native-wasm && rustup override unset", "build:wasm": "rustup override set nightly-2025-05-09 && rustup target add wasm32-wasip1-threads && WASI_SDK_PATH=\"$(pwd)/wasi-sdk-23.0-x86_64-linux\" CMAKE_BUILD_PARALLEL_LEVEL=2 LIBSQLITE3_FLAGS=\"-DLONGDOUBLE_TYPE=double\" pnpm exec nx run-many -t build-native-wasm && rustup override unset",
"lint-pnpm-lock": "eslint pnpm-lock.yaml", "lint-pnpm-lock": "eslint pnpm-lock.yaml",
"migrate-to-pnpm-version": "node ./scripts/migrate-to-pnpm-version.js" "migrate-to-pnpm-version": "node ./scripts/migrate-to-pnpm-version.js",
"analyze-docs": "node tools/scripts/analyze-docs.mjs"
}, },
"devDependencies": { "devDependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",

18
tools/scripts/analyze-docs.mjs Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env node
import { readFileSync } from 'fs';
import { execSync } from 'child_process';
try {
const config = JSON.parse(
readFileSync(new URL('../../.rawdocs.local.json', import.meta.url))
);
execSync(
`node ${config.rawDocsPath}/scripts/analyze-changes.mjs ${process.argv
.slice(2)
.join(' ')}`,
{ stdio: 'inherit' }
);
} catch {
console.log(
`Error: Run installation with:\ngh api repos/nrwl/raw-docs/contents/install.sh --jq '.content' | base64 -d | bash`
);
}