The pages on the WordPress.org main site use patterns to render the page content, so that any changes are tracked in version control. Each pattern is built from page content, so that the editor can be used.
To update a page using the new redesign, you need someone with at least “editor” or “designer” access to the site, and someone from the meta team with commit access to dotorg. They don’t need to be the same person, one person can update the content, while the second syncs & deploys the change.
Make the change in the editor
- Edit the page content, using the editor as on any other site. You can use the “Preview in new tab” to see your changes.
- Update the page to save your changes. It will not be visible on the front end yet.
- On save, an automated action will run to create a pull request with your updates to the version-controlled theme. Go to https://github.com/WordPress/wporg-main-2022/pulls and wait for a PR to appear, it will be called “Content updates from Page Editor” — if there is already a PR, your changes will be added on to it.
- Add a comment to the PR explaining your updates.
- Someone with a dotorg sandbox should merge and deploy the PR — ask in #meta if you need help.
Deploy the change to the live site (on sandbox)
- Merge the automated PR on github
- Wait for the actions to finish, specifically the build action.
- On a wporg sandbox, sync the changes down into dotorg.svn with the
bin/sync/main.shscript. - Deploy
wporg. - The change should be live 🎉
Manually build the changes (instructions for reference, it’s better to use the github PR flow)
- Sync the updated content to a pattern in the GitHub repository.
- You’ll need a checkout of
wporg-main-2022. - Run the generator script
- If you’re using the Docker environment, start Docker and run
yarn wp-env start. Then runyarn build:patterns. - If you don’t have
yarn,npm run wp-env startandnpm run build:patternsshould work, but for working on the theme itself (building JS, CSS, etc) yarn is recommended. - If you’re using a local environment,
cd envand runwp eval-file export-content/index.php page-manifest.jsondirectly.
- If you’re using the Docker environment, start Docker and run
- Verify that the changes look correct, and commit.
- You’ll need a checkout of
- Push the changes up to GitHub, and wait for the Build action to finish. This will push the commit to the
buildbranch. - On a wporg sandbox, sync the changes down into dotorg.svn with the
bin/sync/main.shscript. - Deploy
wporg. - The change should be live 🎉