The Capacitor website (capacitor-site/
) and documentation (capacitor-site/pages/docs
) live alongside the code. Looking to assist? See Capacitor issues labeled "docs" here.
- Fork this repo.
- Clone your fork.
- Make a branch for your change.
- Run
npm install
. - Run
npm start
to build and deploy the website/docs to localhost.
Note: Content updated while the dev server is running won't be reflected locally. Stop the process, then re-run
npm start
.
- Navigate to
capacitor-site/pages/docs/
- For the Guide menu, add to
capacitor-site/pages/docs/guide/README.md
- For the Plugins menu, add to
capacitor-site/pages/docs/plugins/README.md
- For the CLI menu, add to
capacitor-site/pages/docs/reference/README.md
For smaller edits, navigate to the desired page in the Capacitor docs then click the "Submit an edit" button.
- Locate the doc you want to modify in
capacitor-site/pages/docs/
. - Modify the documentation, making sure to keep the format the same as the rest of the doc.
- Run
npm run site-structure
to rebuild the content. - Run
npm start
to make sure your changes look correct.