Preview documentation from a specific GitHub branch
mainBy default, the site pulls documentation from the main branch of the Payload repository. To preview documentation from a different branch without performing a full CMS sync, use the /docs/dynamic/ route with a branch query parameter.
Example usage:
- Main branch:
https://payloadcms.com/docs/getting-started/concepts - Specific branch:
https://payloadcms.com/docs/dynamic/getting-started/concepts?branch=feat/myfeature
In the CMS, you can use the branch selector to choose which branch to work on. When you save changes to a document, the Lexical docs are converted back to MDX and pushed to the selected branch on GitHub.