Skip to content

Commit 12f09a2

Browse files
committed
Merge branch 'release/1.1.0'
2 parents a4516ae + 98efafe commit 12f09a2

File tree

7 files changed

+181
-90
lines changed

7 files changed

+181
-90
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ 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

77
## [Unreleased]
8+
9+
## [1.1.0] - 2014-04-16
810
### Added
911
- Added `--exclude` option.
1012
- Added `--ignore-vcs-ignored` option.
@@ -17,5 +19,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1719
### Added
1820
- First Release.
1921

20-
[Unreleased]: https://github.com/pronamic/wp-documentor/compare/1.0.0...HEAD
22+
[Unreleased]: https://github.com/pronamic/wp-documentor/compare/1.1.0...HEAD
23+
[1.1.0]: https://github.com/pronamic/wp-documentor/releases/tag/1.1.0
2124
[1.0.0]: https://github.com/pronamic/wp-documentor/releases/tag/1.0.0

README.md

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,44 @@ To let Pronamic WordPress Documentor analyse your codebase, you have to use the
4040
vendor/bin/wp-documentor parse src
4141
```
4242

43+
## Command Line Usage
44+
45+
### `--memory-limit`
46+
47+
Specifies the memory limit in the same format `php.ini` accepts.
48+
49+
Example: `--memory-limit=-1`
50+
51+
### `--exclude`
52+
53+
Exclude the specified folders/files.
54+
55+
Example: `--exclude=vendor,wordpress`
56+
57+
### `--ignore-vcs-ignored`
58+
59+
If the search directory contains a .gitignore file, you can reuse those rules to exclude files and directories from the results with this option.
60+
61+
Example: `--ignore-vcs-ignored`
62+
4363
## Examples
4464

4565
```
46-
bin/wp-documentor parse tests/source
47-
bin/wp-documentor parse tests/source --format=hookster-actions
48-
bin/wp-documentor parse tests/source --format=hookster-filters
66+
bin/wp-documentor parse ./tests/source
67+
```
68+
69+
```
70+
bin/wp-documentor parse ./tests/source --format=hookster --type=actions --output=tests/docs/hookster-actions.json
71+
bin/wp-documentor parse ./tests/source --format=hookster --type=filters --output=tests/docs/hookster-filters.json
4972
```
5073

5174
```
52-
bin/wp-documentor parse tests/source --format=hookster --type=actions --output=tests/docs/hookster-actions.json
53-
bin/wp-documentor parse tests/source --format=hookster --type=filters --output=tests/docs/hookster-filters.json
54-
bin/wp-documentor parse tests/source --format=markdown --output=tests/docs/hooks.md
75+
bin/wp-documentor parse ./tests/source --format=markdown --output=tests/docs/hooks.md
5576
```
5677

5778
```
58-
bin/wp-documentor parse tests/source --format=phpdocumentor-rst --type=actions --output=tests/docs/phpdocumentor-actions.rst
59-
bin/wp-documentor parse tests/source --format=phpdocumentor-rst --type=filters --output=tests/docs/phpdocumentor-filters.rst
79+
bin/wp-documentor parse ./tests/source --format=phpdocumentor-rst --type=actions --output=tests/docs/phpdocumentor-actions.rst
80+
bin/wp-documentor parse ./tests/source --format=phpdocumentor-rst --type=filters --output=tests/docs/phpdocumentor-filters.rst
6081
```
6182

6283
## Alternatives

bin/wp-documentor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use Symfony\Component\Console\Output\StreamOutput;
3535
use Symfony\Component\Console\Style\SymfonyStyle;
3636
use Symfony\Component\Finder\Finder;
3737

38-
$application = new Application( 'Pronamic WordPress Documentor', '1.0.0' );
38+
$application = new Application( 'Pronamic WordPress Documentor', '1.1.0' );
3939

4040
$application->register( 'parse' )
4141
->addArgument( 'source', InputArgument::REQUIRED, 'Directory to scan for hooks extraction.' )

templates/markdown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
printf(
7171
'<em>Generated by <a href="%s">Pronamic WordPress Documentor</a> <code>%s</code></em>',
7272
'https://github.com/pronamic/wp-documentor',
73-
'1.0.0'
73+
'1.1.0'
7474
);
7575

7676
echo '<p>';

tests/docs/hooks.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Version | Description
2626
------- | -----------
2727
`2.9.0` |
2828

29-
Source: [tests/source/actions.php](../source/actions.php), [line 3](../source/actions.php#L3-L15)
29+
Source: [tests/source/actions.php](../source/actions.php), [line 11](../source/actions.php#L11-L23)
3030

3131
### `good_doc_dynamic_action_{$option}`
3232

@@ -48,7 +48,7 @@ Version | Description
4848
------- | -----------
4949
`2.9.0` |
5050

51-
Source: [tests/source/actions.php](../source/actions.php), [line 17](../source/actions.php#L17-L29)
51+
Source: [tests/source/actions.php](../source/actions.php), [line 25](../source/actions.php#L25-L37)
5252

5353
### `good_doc_double_quotes_dynamic_action_{$option}`
5454

@@ -70,7 +70,7 @@ Version | Description
7070
------- | -----------
7171
`2.9.0` |
7272

73-
Source: [tests/source/actions.php](../source/actions.php), [line 31](../source/actions.php#L31-L43)
73+
Source: [tests/source/actions.php](../source/actions.php), [line 39](../source/actions.php#L39-L51)
7474

7575
### `missing_since_static_action`
7676

@@ -87,7 +87,7 @@ Argument | Type | Description
8787
`$old_value` | `mixed` | The old option value.
8888
`$value` | `mixed` | The new option value.
8989

90-
Source: [tests/source/actions.php](../source/actions.php), [line 45](../source/actions.php#L45-L55)
90+
Source: [tests/source/actions.php](../source/actions.php), [line 53](../source/actions.php#L53-L63)
9191

9292
### `missing_since_dynamic_action_{$option}`
9393

@@ -103,7 +103,7 @@ Argument | Type | Description
103103
`$old_value` | `mixed` | The old option value.
104104
`$value` | `mixed` | The new option value.
105105

106-
Source: [tests/source/actions.php](../source/actions.php), [line 57](../source/actions.php#L57-L67)
106+
Source: [tests/source/actions.php](../source/actions.php), [line 65](../source/actions.php#L65-L75)
107107

108108
### `missing_since_double_quotes_dynamic_action_{$option}`
109109

@@ -119,7 +119,7 @@ Argument | Type | Description
119119
`$old_value` | `mixed` | The old option value.
120120
`$value` | `mixed` | The new option value.
121121

122-
Source: [tests/source/actions.php](../source/actions.php), [line 69](../source/actions.php#L69-L79)
122+
Source: [tests/source/actions.php](../source/actions.php), [line 77](../source/actions.php#L77-L87)
123123

124124
### `missing_param_static_action`
125125

@@ -142,7 +142,7 @@ Version | Description
142142
------- | -----------
143143
`2.9.0` |
144144

145-
Source: [tests/source/actions.php](../source/actions.php), [line 81](../source/actions.php#L81-L92)
145+
Source: [tests/source/actions.php](../source/actions.php), [line 89](../source/actions.php#L89-L100)
146146

147147
### `missing_param_dynamic_action_{$option}`
148148

@@ -164,7 +164,7 @@ Version | Description
164164
------- | -----------
165165
`2.9.0` |
166166

167-
Source: [tests/source/actions.php](../source/actions.php), [line 94](../source/actions.php#L94-L105)
167+
Source: [tests/source/actions.php](../source/actions.php), [line 102](../source/actions.php#L102-L113)
168168

169169
### `missing_param_double_quotes_dynamic_action_{$option}`
170170

@@ -186,7 +186,7 @@ Version | Description
186186
------- | -----------
187187
`2.9.0` |
188188

189-
Source: [tests/source/actions.php](../source/actions.php), [line 107](../source/actions.php#L107-L118)
189+
Source: [tests/source/actions.php](../source/actions.php), [line 115](../source/actions.php#L115-L126)
190190

191191
### `no_doc_static_action`
192192

@@ -198,7 +198,7 @@ Argument | Type | Description
198198
`$old_value` | |
199199
`$value` | |
200200

201-
Source: [tests/source/actions.php](../source/actions.php), [line 120](../source/actions.php#L120-L120)
201+
Source: [tests/source/actions.php](../source/actions.php), [line 128](../source/actions.php#L128-L128)
202202

203203
### `no_doc_dynamic_action_{$option}`
204204

@@ -209,7 +209,7 @@ Argument | Type | Description
209209
`$old_value` | |
210210
`$value` | |
211211

212-
Source: [tests/source/actions.php](../source/actions.php), [line 121](../source/actions.php#L121-L121)
212+
Source: [tests/source/actions.php](../source/actions.php), [line 129](../source/actions.php#L129-L129)
213213

214214
### `no_doc_double_quotes_dymanic_action_{$option}`
215215

@@ -220,7 +220,7 @@ Argument | Type | Description
220220
`$old_value` | |
221221
`$value` | |
222222

223-
Source: [tests/source/actions.php](../source/actions.php), [line 122](../source/actions.php#L122-L122)
223+
Source: [tests/source/actions.php](../source/actions.php), [line 130](../source/actions.php#L130-L130)
224224

225225
### `test`
226226

@@ -305,7 +305,7 @@ Version | Description
305305
------- | -----------
306306
`2.9.0` |
307307

308-
Source: [tests/source/union-types.php](../source/union-types.php), [line 3](../source/union-types.php#L3-L12)
308+
Source: [tests/source/union-types.php](../source/union-types.php), [line 11](../source/union-types.php#L11-L20)
309309

310310
## Filters
311311

@@ -329,7 +329,7 @@ Version | Description
329329
------- | -----------
330330
`3.9.0` |
331331

332-
Source: [tests/source/filters.php](../source/filters.php), [line 2](../source/filters.php#L2-L13)
332+
Source: [tests/source/filters.php](../source/filters.php), [line 11](../source/filters.php#L11-L22)
333333

334334
### `good_dynamic_filter_{$option}`
335335

@@ -351,7 +351,7 @@ Version | Description
351351
------- | -----------
352352
`2.6.0` |
353353

354-
Source: [tests/source/filters.php](../source/filters.php), [line 15](../source/filters.php#L15-L26)
354+
Source: [tests/source/filters.php](../source/filters.php), [line 24](../source/filters.php#L24-L35)
355355

356356
### `good_double_quotes_dynamic_filter_{$option}`
357357

@@ -373,7 +373,7 @@ Version | Description
373373
------- | -----------
374374
`2.6.0` |
375375

376-
Source: [tests/source/filters.php](../source/filters.php), [line 28](../source/filters.php#L28-L39)
376+
Source: [tests/source/filters.php](../source/filters.php), [line 37](../source/filters.php#L37-L48)
377377

378378
### `missing_since_static_filter`
379379

@@ -389,7 +389,7 @@ Argument | Type | Description
389389
`$mce_translation` | |
390390
`$mce_locale` | `string` | Locale.
391391

392-
Source: [tests/source/filters.php](../source/filters.php), [line 41](../source/filters.php#L41-L50)
392+
Source: [tests/source/filters.php](../source/filters.php), [line 50](../source/filters.php#L50-L59)
393393

394394
### `missing_since_dynamic_filter_{$option}`
395395

@@ -405,7 +405,7 @@ Argument | Type | Description
405405
`$value` | `mixed` | The new, unserialized option value.
406406
`$old_value` | `mixed` | The old option value.
407407

408-
Source: [tests/source/filters.php](../source/filters.php), [line 52](../source/filters.php#L52-L61)
408+
Source: [tests/source/filters.php](../source/filters.php), [line 61](../source/filters.php#L61-L70)
409409

410410
### `missing_since_double_quotes_dynamic_filter_{$option}`
411411

@@ -421,7 +421,7 @@ Argument | Type | Description
421421
`$value` | `mixed` | The new, unserialized option value.
422422
`$old_value` | `mixed` | The old option value.
423423

424-
Source: [tests/source/filters.php](../source/filters.php), [line 63](../source/filters.php#L63-L72)
424+
Source: [tests/source/filters.php](../source/filters.php), [line 72](../source/filters.php#L72-L81)
425425

426426
### `missing_param_static_filter`
427427

@@ -443,7 +443,7 @@ Version | Description
443443
------- | -----------
444444
`2.6.0` |
445445

446-
Source: [tests/source/filters.php](../source/filters.php), [line 74](../source/filters.php#L74-L84)
446+
Source: [tests/source/filters.php](../source/filters.php), [line 83](../source/filters.php#L83-L93)
447447

448448
### `missing_param_dynamic_filter_{$option}`
449449

@@ -465,7 +465,7 @@ Version | Description
465465
------- | -----------
466466
`2.6.0` |
467467

468-
Source: [tests/source/filters.php](../source/filters.php), [line 86](../source/filters.php#L86-L96)
468+
Source: [tests/source/filters.php](../source/filters.php), [line 95](../source/filters.php#L95-L105)
469469

470470
### `missing_param_double_quotes_dynamic_filter_{$option}`
471471

@@ -487,7 +487,7 @@ Version | Description
487487
------- | -----------
488488
`2.6.0` |
489489

490-
Source: [tests/source/filters.php](../source/filters.php), [line 98](../source/filters.php#L98-L108)
490+
Source: [tests/source/filters.php](../source/filters.php), [line 107](../source/filters.php#L107-L117)
491491

492492
### `multiple_since_tags`
493493

@@ -510,7 +510,7 @@ Version | Description
510510
`1.9` | Added a new parameter to the filter
511511
`1.0` |
512512

513-
Source: [tests/source/filters.php](../source/filters.php), [line 110](../source/filters.php#L110-L122)
513+
Source: [tests/source/filters.php](../source/filters.php), [line 119](../source/filters.php#L119-L131)
514514

515515
### `no_doc_static_filter`
516516

@@ -521,7 +521,7 @@ Argument | Type | Description
521521
`$mce_translation` | |
522522
`$mce_locale` | |
523523

524-
Source: [tests/source/filters.php](../source/filters.php), [line 124](../source/filters.php#L124-L124)
524+
Source: [tests/source/filters.php](../source/filters.php), [line 133](../source/filters.php#L133-L133)
525525

526526
### `no_doc_dynamic_filter_{$option}`
527527

@@ -532,7 +532,7 @@ Argument | Type | Description
532532
`$value` | |
533533
`$old_value` | |
534534

535-
Source: [tests/source/filters.php](../source/filters.php), [line 126](../source/filters.php#L126-L126)
535+
Source: [tests/source/filters.php](../source/filters.php), [line 135](../source/filters.php#L135-L135)
536536

537537
### `no_doc_double_quotes_dynamic_filter_{$option}`
538538

@@ -543,8 +543,8 @@ Argument | Type | Description
543543
`$value` | |
544544
`$old_value` | |
545545

546-
Source: [tests/source/filters.php](../source/filters.php), [line 128](../source/filters.php#L128-L128)
546+
Source: [tests/source/filters.php](../source/filters.php), [line 137](../source/filters.php#L137-L137)
547547

548548

549-
<p align="center"><a href="https://github.com/pronamic/wp-documentor"><img src="https://cdn.jsdelivr.net/gh/pronamic/wp-documentor@main/logos/pronamic-wp-documentor.svgo-min.svg" alt="Pronamic WordPress Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/pronamic/wp-documentor">Pronamic WordPress Documentor</a> <code>1.0.0</code></em><p>
549+
<p align="center"><a href="https://github.com/pronamic/wp-documentor"><img src="https://cdn.jsdelivr.net/gh/pronamic/wp-documentor@main/logos/pronamic-wp-documentor.svgo-min.svg" alt="Pronamic WordPress Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/pronamic/wp-documentor">Pronamic WordPress Documentor</a> <code>1.1.0</code></em><p>
550550

0 commit comments

Comments
 (0)