Skip to content

Move the doc generation (with NPM) out of the root project#87

Open
brickpop wants to merge 11 commits intomainfrom
f/move-docs
Open

Move the doc generation (with NPM) out of the root project#87
brickpop wants to merge 11 commits intomainfrom
f/move-docs

Conversation

@brickpop
Copy link
Copy Markdown
Contributor

@brickpop brickpop commented Apr 2, 2026

Remove the root node_modules dependency

Docs generation is moved to docs-gen/ as a self-contained bun package (lifecycle scripts disabled by default via bunfig.toml). The root package.json and .prettierrc are deleted (Solidity formatting now goes through forge fmt, configured via .zed/settings.json and .vscode/settings.json).

just docs is the new entry point: cd docs-gen && bun install && bash prepare-docs.sh && bun run prepare-docs.js.

Spawning a new nodejs process is not needed: The nav generation subprocess (gen-nav.js) is inlined into prepare-docs.js as a plain function, removing the child_process dependency and the CodeQL shell injection surface entirely.

npm-artifacts/prepare-abi.sh is fixed: the dead pnpm install && pnpm run build block (which tried to build Solidity via a non-existent package.json in src/) is replaced with forge build. The artifacts-publish.yml workflow gains submodules: recursive and drops the broken root pnpm install step.

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