You can improve Playground documentation directly on GitHub. This is useful for typo fixes, small clarifications, and translation updates when you do not want to clone the repository or set up a local development environment.
Before you start, sign in to GitHub and identify the documentation page you want to change.
Most English documentation pages live in the packages/docs/site/docs directory.
Translated documentation lives in packages/docs/site/i18n. For more details about translation file paths, see Contributions to translations.
For existing pages, the fastest way to find the source file is from the documentation site:
Open the documentation page you want to update.
Select the Edit this page link near the bottom of the page.
If GitHub asks you to fork the repository, follow the prompt. This creates a copy under your GitHub account.
Make your changes in the editor.
GitHub’s web editor is best for small, focused changes. If your update is large or needs local preview, use the local workflow in Documentation contributions.
Open the directory where the new page should live.
Select Add file and then Create new file.
Enter the file name. You can create folders by typing the folder name followed by /.
Add the page content.
Mention where the page should appear in the documentation sidebar when you open the pull request.
If you are comfortable editing another file, you can also add the page to
packages/docs/site/sidebars.js.
For new English documentation pages, add front matter at the top of the file:
---
slug: /example-page
title: Example page
description: A short description of the page.
---
For new translated pages, mirror the English file path in the matching language directory. For example,
a French translation of packages/docs/site/docs/main/contributing/documentation.md belongs in
packages/docs/site/i18n/fr/docusaurus-plugin-content-docs/current/main/contributing/documentation.md.
Keep the original English content in a comment above the translation so reviewers can compare the text.
Before submitting, use the Preview tab in GitHub to check basic Markdown formatting. This is not
a full Docusaurus preview, so also review links and images carefully. Site-relative paths such as
/img/contributing/example.webp may not behave the same way in GitHub’s Markdown preview.
Look for:
A maintainer will review your pull request. They may ask for changes before merging it.
If you are contributing translations, you can also request a review in the #polyglots or #playground channel in Make WordPress Slack.