You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,19 @@ This project is based on [Slate](https://github.com/tripit/slate).
6
6
7
7
## Usage ##
8
8
9
-
To generate docs run:
9
+
### Updating and building the docs
10
+
11
+
The docs for the latest version of the REST API (v3) are in `source/includes/wp-api-v3`. Each section of the docs has its own Markdown file. Once you have made changes, you can generate the docs locally with the following:
10
12
11
13
```bash
12
14
./build.sh
13
15
```
14
16
15
-
To deploy generated docs:
17
+
After the build script has finished, the generated docs can be found in the `build` directory. Open the `index.html` file in your browser to view the local version of the docs site.
18
+
19
+
### Deploying the docs
20
+
21
+
When you merge a PR to the trunk branch of this repository, a workflow runs that will automatically deploy the generated docs to the `gh-pages` branch. However, you can also deploy manually with the following:
@@ -57,6 +58,7 @@ This section lists all API endpoints that can be used to create, edit or otherwi
57
58
|`parent_id`| integer | Product parent ID (post_parent) |
58
59
|`categories`| array | List of product categories names (`string`). In write-mode need to pass a array of categories IDs (`integer`) ([uses wp_set_object_terms()](http://codex.wordpress.org/Function_Reference/wp_set_object_terms)) |
59
60
|`tags`| array | List of product tags names (`string`). In write-mode need to pass a array of tags IDs (`integer`) ([uses wp_set_object_terms()](http://codex.wordpress.org/Function_Reference/wp_set_object_terms)) |
61
+
|`brands`| array | List of product brands. See [Brands Properties](#brands-properties). In write-mode pass an array of brand objects with `id` property ([uses wp_set_object_terms()](http://codex.wordpress.org/Function_Reference/wp_set_object_terms)) |
60
62
|`images`| array | List of products images. See [Images Properties](#images-properties)|
61
63
|`featured_src`| string | Featured image URL <iclass="label label-info">read-only</i> |
62
64
|`attributes`| array | List of product attributes. See [Attributes Properties](#attributes-properties). Note: the attribute must be registered in WooCommerce before. |
@@ -102,6 +104,14 @@ This section lists all API endpoints that can be used to create, edit or otherwi
102
104
<code>alt</code> and <code>title</code> attributes are writable starting from WooCommerce 2.5.
0 commit comments