Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Dependencies
/node_modules
/scripts/site-build-gate/node_modules/

# Production
/build
Expand Down
6 changes: 4 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ Netlify build or deployment responsible for merge eligibility:

## Static build gate contract

- Learn commits the complete checksum-bound Node.js 22 gate under `scripts/site-build-gate/` and
runs it locally after Docusaurus. CI and deployment do not fetch or execute the SEO repository.
- Learn installs the SEO-owned Node.js 22 gate as the published npm package
`@netdata/site-build-gate` and runs it locally after Docusaurus. Its major version is the
ruleset version and must match `config/site-build-gate-baseline.json`. CI and deployment do not
fetch or execute the SEO repository.
- Learn declares `/docs/collecting-metrics/collectors` as its segment-safe integration route
prefix. The generic page-weight diagnostic excludes that route family; integration pages remain
subject to every non-weight rule, so this is not a whole-page validation bypass.
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ Please also look at the [style guide](https://github.com/netdata/netdata/blob/ma
```

3. Install Yarn Classic 1.22.22 and the locked dependencies. Netlify selects Yarn because
this repository tracks `yarn.lock`; npm 10.9.9 remains pinned for the nested build-gate
install run by `build:netlify`.
this repository tracks `yarn.lock`.

```bash
npm install --global yarn@1.22.22
Expand Down Expand Up @@ -74,8 +73,8 @@ the plugin's asset list; the site build gate requires the page to have a title.
### Dependency update authority

The root JavaScript dependency authority is `package.json` plus Yarn Classic `yarn.lock`. Do not
add a root `package-lock.json`. The npm lock below `scripts/site-build-gate/` is a separate,
website-owned vendor contract and remains npm-managed. Dependabot watches the root Yarn graph and
add a root `package-lock.json`. The site build gate is the published `@netdata/site-build-gate`
package, so its parser dependencies are part of the root Yarn graph. Dependabot watches that graph and
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
GitHub Actions; owner-controlled vendor packages are intentionally excluded from automatic updates.

Root Yarn resolutions are only used for security releases that are compatible with every selected
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"build:netlify": "node scripts/verify-git-history.js && node scripts/verify-indexnow-vendor.js && npm ci --prefix scripts/site-build-gate --ignore-scripts --no-audit && docusaurus build && node scripts/run-post-build-gates.mjs",
"build:netlify": "node scripts/verify-git-history.js && node scripts/verify-indexnow-vendor.js && docusaurus build && node scripts/run-post-build-gates.mjs",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down Expand Up @@ -73,6 +73,7 @@
},
"devDependencies": {
"@docusaurus/faster": "3.10.2",
"@netdata/site-build-gate": "^10.1.0",
"@tailwindcss/postcss": "^4.3.3",
"@testing-library/dom": "^10.4.2",
"@testing-library/jest-dom": "^7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-post-build-gates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const strictGeneratedCorpusGates = [
['scripts/verify-rendered-indexability.js'],
['scripts/verify-cloudflare-rum.js', 'build'],
[
'scripts/site-build-gate/site_build_gate.mjs',
'node_modules/@netdata/site-build-gate/site_build_gate.mjs',
'--build-dir',
'build',
'--site-origin',
Expand Down
20 changes: 0 additions & 20 deletions scripts/site-build-gate/manifest.json

This file was deleted.

90 changes: 0 additions & 90 deletions scripts/site-build-gate/package-lock.json

This file was deleted.

14 changes: 0 additions & 14 deletions scripts/site-build-gate/package.json

This file was deleted.

Loading
Loading