块编辑器开发文档

💡 云策文档标注

概述

本文档是 WordPress 区块开发的入门指南,旨在帮助新手设置开发环境、构建首个区块并掌握核心概念,同时提供进阶资源以跟上项目更新。

关键要点

  • 设置开发环境:使用 wp-env、create-block 和 wp-scripts 等工具搭建区块开发环境。
  • 快速入门:在不到一分钟内创建并运行自定义区块。
  • 教程与基础:通过逐步教程构建完整区块,并学习区块开发的基本概念和术语。
  • 保持更新:推荐 WordPress Roadmap、Make Core 博客、Slack 社区和 GitHub 仓库等资源,以跟踪 WordPress 和 Gutenberg 的最新动态。
  • 额外资源:参考 Block Editor Handbook 和 block-development-examples 仓库获取更多示例,或访问 Learn WordPress 获取教育内容。

📄 原文内容

Welcome to the Getting Started documentation. From setting up your development environment and building your first block to understanding the fundamentals, this section is the perfect starting point if you are new to block development or want to improve your skills.

Navigating this chapter

Use the following links to locate a topic within this chapter. If you have never built a block before, consider reading through the documentation in the order listed.

Keeping up with the WordPress project

Once you have finished reviewing this chapter, you will have a solid understanding of blocks and how to develop for the Block Editor, but what’s next?

The WordPress project, and Gutenberg in particular, iterates quickly. Staying up-to-date on all the changes can be challenging. So, here are a few essential developer resources you should be aware of. Each person will have their own unique needs in keeping up with a project of this scale, so choose what’s right for you.

  • WordPress Roadmap: The high-level roadmap for WordPress and Gutenberg.
  • Make Core: The primary blog for WordPress Core where all major project updates are posted.
  • WordPress Slack: The official Slack community for all WordPress contributors is the hub for team meetings, ongoing conversations, and more. Make sure to join the #core and #core-editor channels.
  • Gutenberg GitHub repository: This is where all Block Editor development happens. Keeping a close eye on the repository will give you a real-time understanding of what’s being worked on by fellow contributors.
  • Keeping up with Gutenberg: A compilation of Gutenberg-related posts from the many Make teams, including Core, Design, Meta, and Themes.
  • “What’s new in Gutenberg?”: Biweekly posts published on Make Core with each Gutenberg release. They are a great way to review the most relevant new features and the full changelog.
  • “What’s new for developers?”: Monthly posts on the WordPress Developer Blog that showcase the most important developer-related changes that happened in WordPress the previous month.

Additional resources

For more resources on block development and extending the Block Editor, review the additional sections here in the Block Editor Handbook. Further practical examples are also available in the block-development-examples GitHub repository.

If you are looking for more educational content, check out Learn WordPress, where you can find tutorials, courses, and online workshops. Here is a selection of current offerings: