Skip to content

Commit 2375803

Browse files
Merge pull request #2 from woocommerce/phpdoc
Phpdoc
2 parents 1f33fda + 71f17d1 commit 2375803

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+6121
-4704
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ root = true
33

44
[*]
55
indent_style = space
6-
indent_size = 2
6+
indent_size = 4
77
end_of_line = lf
88
charset = utf-8
99
trim_trailing_whitespace = true

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
*.zip
12
build/
2-
source/
3+
woocommerce/
34
vendor/
5+
!data/templates/woocommerce/

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.0] - 2020-08-03
8+
### Added
9+
- PHPDoc 3.0 RC support.
10+
- New template
11+
### Remove
12+
- APIGen support.
13+
714
## [0.0.1] - 2019-06-25
815
### Added
916
- Initial version.
1017

11-
[Unreleased]: https://github.com/woocommerce/woocommerce-api-docs/compare/0.0.1...HEAD
12-
[0.0.1]: https://github.com/woocommerce/woocommerce-api-docs/compare/749f431...0.0.1
18+
[Unreleased]: https://github.com/woocommerce/code-reference-generator/compare/0.1.0...HEAD
19+
[0.1.0]: https://github.com/woocommerce/code-reference-generator/compare/0.0.1...0.1.0
20+
[0.0.1]: https://github.com/woocommerce/code-reference-generator/compare/749f431...0.0.1

README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
1-
# WooCommerce Class API Docs
1+
# WooCommerce Code Reference Generator
22

3-
Generate WooCommerce [Class API Docs](https://docs.woocommerce.com/wc-apidocs/index.html).
3+
Generate [WooCommerce Code Reference](https://docs.woocommerce.com/wc-apidocs/index.html).
44

55
## Install
66

77
```bash
8-
git clone https://github.com/woocommerce/woocommerce-api-docs.git
8+
git clone https://github.com/woocommerce/code-reference-generator.git
99
```
1010

1111
## Usage
1212

1313
```bash
14-
cd woocommerce-api-docs
15-
./generate.sh -w <woocommerce_version>
14+
cd code-reference-generator
15+
./generate.sh -s <woocommerce_version>
1616
```
1717

1818
### Options
1919

20-
| Options | Description |
21-
|-------------------------|-------------------------|
22-
| `-h` or `--help` | Shows help message |
23-
| `-v` or `--version` | Shows generator version |
24-
| `-w` or `--woocommerce` | WooCommerce version |
25-
26-
## TODO
27-
28-
- Find an alternative to ApiGen or fork ApiGen to fix support for latest PHP versions.
20+
| Options | Description |
21+
|----------------------------|-----------------------------------------------------------------|
22+
| `-h` or `--help` | Shows help message |
23+
| `-v` or `--version` | Shows generator version |
24+
| `-s` or `--source-version` | Version of the source code to release |
25+
| `-r` or `--github-repo` | GitHub repo with username, default to "woocommerce/woocommerce" |
2926

3027
## Changelog
3128

32-
[See changelog for details](https://github.com/woocommerce/woocommerce-api-docs/blob/master/CHANGELOG.md)
29+
[See changelog for details](https://github.com/woocommerce/code-reference-generator/blob/master/CHANGELOG.md)

apigen.neon

Lines changed: 0 additions & 22 deletions
This file was deleted.

apigen/hook-docs.php

Lines changed: 0 additions & 228 deletions
This file was deleted.

apigen/theme-woocommerce/404.latte

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)