Getting Started
Documentation for Gutenberg consists of markdown files in the/docs/ directory of the repository and generated documentation from packages. Your contributions help developers understand and work with the block editor.
Community
Join Slack
Connect with the documentation community in the
#docs channel on Make WordPress Slack (free to join).Attend Meetings
Weekly documentation team meetings are held on Tuesdays at 14:00 UTC in the #docs Slack channel.
Follow the Blog
Stay updated with the Make WordPress Docs blog for announcements, meeting notes, and documentation priorities.
Find Documentation Issues
Browse issues with the documentation label to find documentation tasks to work on.Documentation Types
Gutenberg has two major sets of documentation:User Documentation
Information for authors publishing posts using the block editor
Block Editor Handbook
Developer documentation for developing, extending, and contributing to Gutenberg
This guide covers contributing to the block editor handbook. For user documentation, follow the docs blog or ask in the #docs Slack channel.
Documentation Publishing
The block editor handbook is automatically published from the Gutenberg repository:- Documentation source:
/docs/directory in Gutenberg repository - Published to: Block Editor Handbook
- Publishing frequency: Every 15 minutes (automated)
Handbook Structure
The handbook is organized into four functional sections:Getting Started Tutorials
Complete lessons that guide learners step-by-step through achieving specific objectives.Example: Create a Block Tutorial
How-To Guides
Short, focused lessons for completing specific tasks quickly.Example: How to Add a Button to the Block Toolbar
Reference Guides
API documentation and purely functional descriptions of components, hooks, and packages.
Contributing Workflow
Update an Existing Document
Clone the Repository
Follow the Git Workflow guide to fork and clone the Gutenberg repository.
Make Changes
Edit the existing markdown file using your preferred editor. Follow the copy guidelines.
Create a New Document
Creating new documentation requires a working JavaScript development environment to build the documentation files.
Create Markdown File
Create a new
.md file in the appropriate /docs/ subdirectory. Use lowercase, dashes for spaces, and .md extension.Add Content
Write your documentation using markdown notation. Every document requires one and only one
h1 tag.Update Table of Contents
Add an entry to
docs/toc.json in the appropriate hierarchy:Writing Guidelines
Using Templates
Use the how-to guide template for consistent structure:- Copy the markdown from the template
- Fill in your content following the structure
- See The Good Docs Project for additional templates
Creating Links
Documentation can be browsed in multiple contexts (handbook, GitHub, npm), so use absolute path links without the GitHub prefix:Use the full directory and filename from the repository, not the published URL. The handbook creates short URLs automatically.
Code Examples
Wrap code examples in triple backticks with a language specifier:Code Tabs for JSX and Plain JavaScript
Usecodetabs to show both JSX and plain JavaScript versions:
Callout Notices
Use HTML withcallout callout-LEVEL classes for notices:
Video Embeds
Videos must be hosted on the WordPress YouTube channel as unlisted videos. Contact the #marketing Slack channel for assistance. Once uploaded, embed using:Videos should have a 16:9 aspect ratio and be filmed at the highest resolution possible.
Documenting Packages
Package documentation is auto-generated from README.md files in package roots. For complex packages, you can split documentation into multiple pages:Set the
parent property to nest pages under the main package name in the handbook.Editor Configuration
Visual Studio Code Setup
Configure VS Code to auto-format markdown with Prettier:Git Workflow for Documentation
Documentation follows the same Git workflow as code contributions:Style Guidelines
Follow these documentation standards:- Voice: Use active voice and second person (“you”)
- Tone: Be clear, concise, and helpful
- Formatting: Follow the Copy Guidelines
- Style: Reference the WordPress Tone and Voice Guide
Writing Best Practices
Documentation Resources
Official Guidelines
External Resources
- The Documentation System - Framework for documentation types
- The Good Docs Project - Documentation templates
- GitHub Markdown Guide
Quick Reference
Common Documentation Tasks
File Structure
Next Steps
Browse Documentation Issues
Find documentation tasks to work on
Git Workflow
Learn the Git workflow for contributions
Watch Tutorial
Video walkthrough of contributing documentation
Copy Guidelines
Review writing style guidelines