Skip to content

BdDsl/handbook

This branch is 1827 commits ahead of, 1432 commits behind wp-cli/handbook:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8a0d6b2 Β· Jun 12, 2019
Apr 25, 2019
Apr 25, 2019
Apr 25, 2019
Nov 14, 2017
Apr 3, 2018
Oct 2, 2018
Apr 16, 2019
Apr 17, 2019
Apr 19, 2019
Aug 30, 2017
Mar 8, 2019
Apr 5, 2019
Jan 30, 2018
Apr 19, 2019
Jul 20, 2018
Dec 14, 2017
Apr 23, 2019
Apr 26, 2019
Nov 13, 2017
Oct 17, 2017
Dec 19, 2018
Feb 16, 2019
Apr 25, 2019
Aug 31, 2017
Nov 24, 2018
May 29, 2019
Apr 20, 2019
Apr 18, 2019
Dec 19, 2017
Apr 25, 2019
Apr 6, 2019
Sep 29, 2017
Apr 19, 2019
Jun 12, 2019
Jul 31, 2018
Apr 21, 2017

Repository files navigation

wp-cli/handbook

These files comprise the WP-CLI handbook (make.wordpress.org/cli/handbook) and WP-CLI commands directory (developer.wordpress.org/cli/commands).

The documentation is located in GitHub to enable a pull request-based editing workflow.

Long-form documentation (e.g. "Commands cookbook") can be edited directly.

Internal API docs and command pages are generated dynamically from the WP-CLI codebase using the wp handbook series of commands.

Before running these commands the bash script bin/install-packages.sh should be run to install the latest versions of the non-bundled commands in bin/packages. Note wp must point to the target WP-CLI instance, i.e. the phar/git that contains the docblocks to be generated against, and should be run with WP_CLI_PACKAGES_DIR=bin/packages and WP_CLI_CONFIG_PATH=/dev/null.

So for instance to generate all dynamically created documentation against the nightly phar run:

wp cli update --nightly
bin/install_packages.sh
WP_CLI_PACKAGES_DIR=bin/packages WP_CLI_CONFIG_PATH=/dev/null wp handbook gen-all

All documentation is imported automatically into WordPress.org in a two step process:

  1. WordPress reads commands-manifest.json or handbook-manifest.json to understand all pages that need to be created.
  2. Each WordPress page has a markdown_source attribute specifying a Markdown file to be fetched, converted to HTML, and saved in the database.

For make.wordpress.org/cli, the import process is a WordPress plugin running a WP Cron job every 15 minutes. For developer.wordpress.org/cli, this is a class in the devhub theme running a WP Cron job every 12 hours.

About

πŸ“– Complete documentation for WP-CLI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 92.8%
  • HTML 4.8%
  • Shell 2.4%