Skip to content

Commit

Permalink
Merge branch 'release/1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Apr 16, 2021
2 parents a4516ae + 98efafe commit 12f09a2
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 90 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.1.0] - 2014-04-16
### Added
- Added `--exclude` option.
- Added `--ignore-vcs-ignored` option.
Expand All @@ -17,5 +19,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- First Release.

[Unreleased]: https://github.com/pronamic/wp-documentor/compare/1.0.0...HEAD
[Unreleased]: https://github.com/pronamic/wp-documentor/compare/1.1.0...HEAD
[1.1.0]: https://github.com/pronamic/wp-documentor/releases/tag/1.1.0
[1.0.0]: https://github.com/pronamic/wp-documentor/releases/tag/1.0.0
37 changes: 29 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,44 @@ To let Pronamic WordPress Documentor analyse your codebase, you have to use the
vendor/bin/wp-documentor parse src
```

## Command Line Usage

### `--memory-limit`

Specifies the memory limit in the same format `php.ini` accepts.

Example: `--memory-limit=-1`

### `--exclude`

Exclude the specified folders/files.

Example: `--exclude=vendor,wordpress`

### `--ignore-vcs-ignored`

If the search directory contains a .gitignore file, you can reuse those rules to exclude files and directories from the results with this option.

Example: `--ignore-vcs-ignored`

## Examples

```
bin/wp-documentor parse tests/source
bin/wp-documentor parse tests/source --format=hookster-actions
bin/wp-documentor parse tests/source --format=hookster-filters
bin/wp-documentor parse ./tests/source
```

```
bin/wp-documentor parse ./tests/source --format=hookster --type=actions --output=tests/docs/hookster-actions.json
bin/wp-documentor parse ./tests/source --format=hookster --type=filters --output=tests/docs/hookster-filters.json
```

```
bin/wp-documentor parse tests/source --format=hookster --type=actions --output=tests/docs/hookster-actions.json
bin/wp-documentor parse tests/source --format=hookster --type=filters --output=tests/docs/hookster-filters.json
bin/wp-documentor parse tests/source --format=markdown --output=tests/docs/hooks.md
bin/wp-documentor parse ./tests/source --format=markdown --output=tests/docs/hooks.md
```

```
bin/wp-documentor parse tests/source --format=phpdocumentor-rst --type=actions --output=tests/docs/phpdocumentor-actions.rst
bin/wp-documentor parse tests/source --format=phpdocumentor-rst --type=filters --output=tests/docs/phpdocumentor-filters.rst
bin/wp-documentor parse ./tests/source --format=phpdocumentor-rst --type=actions --output=tests/docs/phpdocumentor-actions.rst
bin/wp-documentor parse ./tests/source --format=phpdocumentor-rst --type=filters --output=tests/docs/phpdocumentor-filters.rst
```

## Alternatives
Expand Down
2 changes: 1 addition & 1 deletion bin/wp-documentor
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Finder\Finder;

$application = new Application( 'Pronamic WordPress Documentor', '1.0.0' );
$application = new Application( 'Pronamic WordPress Documentor', '1.1.0' );

$application->register( 'parse' )
->addArgument( 'source', InputArgument::REQUIRED, 'Directory to scan for hooks extraction.' )
Expand Down
2 changes: 1 addition & 1 deletion templates/markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
printf(
'<em>Generated by <a href="%s">Pronamic WordPress Documentor</a> <code>%s</code></em>',
'https://github.com/pronamic/wp-documentor',
'1.0.0'
'1.1.0'
);

echo '<p>';
Expand Down
54 changes: 27 additions & 27 deletions tests/docs/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Version | Description
------- | -----------
`2.9.0` |

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

### `good_doc_dynamic_action_{$option}`

Expand All @@ -48,7 +48,7 @@ Version | Description
------- | -----------
`2.9.0` |

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

### `good_doc_double_quotes_dynamic_action_{$option}`

Expand All @@ -70,7 +70,7 @@ Version | Description
------- | -----------
`2.9.0` |

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

### `missing_since_static_action`

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

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

### `missing_since_dynamic_action_{$option}`

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

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

### `missing_since_double_quotes_dynamic_action_{$option}`

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

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

### `missing_param_static_action`

Expand All @@ -142,7 +142,7 @@ Version | Description
------- | -----------
`2.9.0` |

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

### `missing_param_dynamic_action_{$option}`

Expand All @@ -164,7 +164,7 @@ Version | Description
------- | -----------
`2.9.0` |

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

### `missing_param_double_quotes_dynamic_action_{$option}`

Expand All @@ -186,7 +186,7 @@ Version | Description
------- | -----------
`2.9.0` |

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

### `no_doc_static_action`

Expand All @@ -198,7 +198,7 @@ Argument | Type | Description
`$old_value` | |
`$value` | |

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

### `no_doc_dynamic_action_{$option}`

Expand All @@ -209,7 +209,7 @@ Argument | Type | Description
`$old_value` | |
`$value` | |

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

### `no_doc_double_quotes_dymanic_action_{$option}`

Expand All @@ -220,7 +220,7 @@ Argument | Type | Description
`$old_value` | |
`$value` | |

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

### `test`

Expand Down Expand Up @@ -305,7 +305,7 @@ Version | Description
------- | -----------
`2.9.0` |

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

## Filters

Expand All @@ -329,7 +329,7 @@ Version | Description
------- | -----------
`3.9.0` |

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

### `good_dynamic_filter_{$option}`

Expand All @@ -351,7 +351,7 @@ Version | Description
------- | -----------
`2.6.0` |

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

### `good_double_quotes_dynamic_filter_{$option}`

Expand All @@ -373,7 +373,7 @@ Version | Description
------- | -----------
`2.6.0` |

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

### `missing_since_static_filter`

Expand All @@ -389,7 +389,7 @@ Argument | Type | Description
`$mce_translation` | |
`$mce_locale` | `string` | Locale.

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

### `missing_since_dynamic_filter_{$option}`

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

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

### `missing_since_double_quotes_dynamic_filter_{$option}`

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

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

### `missing_param_static_filter`

Expand All @@ -443,7 +443,7 @@ Version | Description
------- | -----------
`2.6.0` |

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

### `missing_param_dynamic_filter_{$option}`

Expand All @@ -465,7 +465,7 @@ Version | Description
------- | -----------
`2.6.0` |

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

### `missing_param_double_quotes_dynamic_filter_{$option}`

Expand All @@ -487,7 +487,7 @@ Version | Description
------- | -----------
`2.6.0` |

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

### `multiple_since_tags`

Expand All @@ -510,7 +510,7 @@ Version | Description
`1.9` | Added a new parameter to the filter
`1.0` |

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

### `no_doc_static_filter`

Expand All @@ -521,7 +521,7 @@ Argument | Type | Description
`$mce_translation` | |
`$mce_locale` | |

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

### `no_doc_dynamic_filter_{$option}`

Expand All @@ -532,7 +532,7 @@ Argument | Type | Description
`$value` | |
`$old_value` | |

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

### `no_doc_double_quotes_dynamic_filter_{$option}`

Expand All @@ -543,8 +543,8 @@ Argument | Type | Description
`$value` | |
`$old_value` | |

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


<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>
<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>

Loading

0 comments on commit 12f09a2

Please sign in to comment.