The WordPress books now update from GitHub

The two books on wordpress.org/book, Milestones: The Story of WordPress and Building Blocks: The Evolution of WordPress, now come straight from WordPress/library on GitHubGitHub GitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged by the repository owner. https://github.com/. Merge a change there and it will go live on wordpress.orgWordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org//book within the hour.

Until now, people edited the site and the GitHub repos separately, so fixes merged on GitHub were very delayed in reaching the site. In June, I spotted a typo in the GPLGPL GPL is an acronym for GNU Public License. It is the standard license WordPress uses for Open Source licensing https://wordpress.org/about/license/. The GPL is a ‘copyleft’ license https://www.gnu.org/licenses/copyleft.en.html. This means that derivative work can only be distributed under the same license terms. This is in distinction to permissive free software licenses, of which the BSD license and the MIT License are widely used examples. chapter, and the fix sat in the repo for months. Footnotes also showed up as raw [footnote] brackets on every chapter.

What changed

  • Building Blocks now lives in WordPress/library next to Milestones, and I archived wp20-book, the repo where the community reviewed the book before its 2023 release. I went through its 13 open issues and pull requests, and the 9 fixes that still applied are now live.
  • Every hour, wordpress.org/book pulls in any chapters that changed, using the same importer as the handbooks.
  • The EPUB and PDF downloads rebuild on every change, so they always match the site.
  • Footnotes display properly now, and every pull request gets checked for broken ones.

How to make an update

Open an issue or a pull request on WordPress/library. Don’t edit chapters on the site itself, since the next import replaces them. The README covers the details.

Adding a brand-new chapter still needs one manual step, since someone with access to the book site has to create its page before the import can fill it.

If you have questions or something isn’t working, leave a comment below or ask in #meta on Making WordPress SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/.

Thanks to @obenland for reviewing the importer and switching it on. And thanks to @eidolonnight for the nudge.