/cocos-docs

Manual docs content for Cocos Creator

Primary LanguageTypeScript

Repo for Cocos Creator User Manual

Install Node Modules

npm install

Generate Sidebar

node ./scripts/create-sidebar.js versions/3.8/zh/SUMMARY.md

node ./scripts/create-sidebar.js versions/3.8/en/SUMMARY.md

Run In Dev Mode

npx vitepress dev versions/3.8

Build

node ./scripts/publish.js --version=versions/3.8

Build All

node ./scripts/publish.js --version=versions/all

Preview

npx vitepress preview versions/3.8

Change the '3.8' above to operate another version.