Visitar URL original
Upgrade Docusaurus 3 and harden documentation site security by jizhen181-dot · Pull Request #129 · BofAI/docs · GitHub
Skip to content

Upgrade Docusaurus 3 and harden documentation site security - #129

Merged
zerodevblock-cyber merged 5 commits into
mainfrom
wallet-cli
Nov 11, 2026
Merged

zerodevblock-cyber merged 5 commits into
mainfrom
wallet-cli

Conversation

@jizhen181-dot

Copy link
Copy Markdown
Collaborator

Upgrade Docusaurus from 2.4.3 to 3.10.2, update related dependencies, and remove the unused vulnerable SVGR dependency chain. Add a hash-based CSP, site-wide security headers, self-hosted fonts, and publishing gates for dependency audits, container scans, and HTTP security checks.

Documentation changes only address Markdown compatibility; model descriptions, pricing values, and API parameters remain unchanged.

Validated English and Chinese builds, lint, type checking, 8 automated tests, and 28 browser regression checks. Dependency auditing reports zero known vulnerabilities. Container scanning will run in CI.

Migrate the site to Docusaurus 3 and compatible MDX, search, math, and TypeScript dependencies. Remove the unused vulnerable SVGR dependency chain and pin reviewed security fixes.

Generate a hash-based CSP, apply security headers across Nginx responses, self-host fonts, and require dependency audits, container scans, and HTTP checks before publishing.
Fail early with recovery instructions when the Chinese tokenizer cannot load for the active Node architecture, and add a native search regression test.

Rename the English sidebar category to X402 Protocol while preserving its Chinese translation through a stable key.
@zerodevblock-cyber
zerodevblock-cyber merged commit cada32b into main Nov 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants