Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

woocommerce/code-reference

Open more actions menu

Repository files navigation

WooCommerce Code Reference Generator

Generate WooCommerce Code Reference.

Install

git clone https://github.com/woocommerce/code-reference.git

Usage

Production Deployment

cd code-reference
./deploy.sh -s <VERSION>

Local Development

For local development and testing with your own WooCommerce installation:

cd code-reference
./run-local.sh

The script will prompt you for the path to your WooCommerce plugin directory. This should be the directory containing the main WooCommerce plugin files (e.g., Users/YourUserName/woocommerce/plugins/woocommerce).

After generation, the Documenation will be served from the build/api folder.

A local web server will start at http://localhost:8000.

Options

Options Description
-h or --help Show help information.
-v or --verbose Increase verbosity. Useful for debugging.
-s <VERSION> or --source-version <VERSION> Source version to build and deploy.
-r <GITHUB_REPO> or --github-repo <GITHUB_REPO> GitHub repo with username, default to "woocommerce/woocommerce".
-e or --allow-empty Allow deployment of an empty directory.
-m <MESSAGE> or --message <MESSAGE> Specify the message used when committing on the deploy branch.
-n or --no-hash Don't append the source commit's hash to the deploy commit's message.
--build-only Only build but not push.
--push-only Only push but not build.
--no-download Skip zip download in case there's on in the project's root.

Changelog

See changelog for details

About

WooCommerce Code Reference Generator

Topics

Resources

License

Stars

Watchers

Forks

Contributors 11

Morty Proxy This is a proxified and sanitized view of the page, visit original site.