An open API service indexing awesome lists of open source software.

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

WooCommerce Code Reference Generator
https://github.com/woocommerce/code-reference

woocommerce

Last synced: 3 months ago
JSON representation

WooCommerce Code Reference Generator

Awesome Lists containing this project

README

          

# WooCommerce Code Reference Generator

Generate [WooCommerce Code Reference](https://woocommerce.github.io/code-reference/).

## Install

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

## Usage

### Production Deployment

```bash
cd code-reference
./deploy.sh -s
```

### Local Development

For local development and testing with your own WooCommerce installation:

```bash
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 ` or `--source-version ` | Source version to build and deploy. |
| `-r ` or `--github-repo ` | GitHub repo with username, default to \"woocommerce/woocommerce\". |
| `-e` or `--allow-empty` | Allow deployment of an empty directory. |
| `-m ` or `--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](https://github.com/woocommerce/code-reference/blob/master/CHANGELOG.md)