The documentation is built using Docusaurus 2.
You'll find the deployed networks in docs/deployments which are generated using ./scripts/generateV5Deployments.js and contract lists in the data folder.
To update a deployment list:
- Update the corresponding contract json file in the
datafolder - Run the script with the deployment you want to generate, ex:
node script/generateV5Deployments.js optimism
Contributing to the docs site is a great way to get involved in the dev community and help other devs along the way! Check out our guidelines here.
Create a markdown file in its respective versioned docs, or versioned SDK, directory.
Relative or absolute paths work. End links with a trailing /
yarn installyarn startThis command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
yarn docusaurus clearyarn buildThis command generates static content into the build directory and can be served using any static contents hosting service.
GIT_USER=<Your GitHub username> USE_SSH=true yarn deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.