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:
parent
460d2114dd
commit
ec457f72df
3
.gitignore
vendored
3
.gitignore
vendored
@ -102,3 +102,6 @@ node_modules/
|
||||
# Task files
|
||||
tasks.json
|
||||
tasks/
|
||||
|
||||
# Raw docs local configuration (machine-specific)
|
||||
.rawdocs.local.json
|
||||
|
||||
10
.rawdocs.json
Normal file
10
.rawdocs.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"include": ["apps/**/*", "libs/**/*", "packages/**/*"],
|
||||
"exclude": [
|
||||
"**/*.spec.*",
|
||||
"**/test/**/*",
|
||||
"**/__tests__/**/*",
|
||||
"**/*.test.*",
|
||||
"node_modules/**/*"
|
||||
]
|
||||
}
|
||||
@ -25,7 +25,8 @@
|
||||
"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",
|
||||
"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": {
|
||||
"@actions/core": "^1.10.0",
|
||||
|
||||
18
tools/scripts/analyze-docs.mjs
Executable file
18
tools/scripts/analyze-docs.mjs
Executable 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`
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user