Skip to content

Commit 42f58d6

Browse files
committed
wip
1 parent 16fa3a9 commit 42f58d6

File tree

8 files changed

+1337
-9
lines changed

8 files changed

+1337
-9
lines changed

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
"post-install-cmd": "echo 'Optionally run: composer bin all install'",
3737
"post-update-cmd": "echo 'Optionally run: composer bin all update'",
3838
"psalm": "vendor/bin/psalm",
39-
"phpdoc": "vendor/bin/phpdoc --setting='guides.enabled=true'"
39+
"phpdoc": "vendor/bin/phpdoc --setting='guides.enabled=true'",
40+
"build-docs": [
41+
"vendor/bin/wp-documentor parse ./src/ --format=phpdocumentor-rst --type=actions > docs/actions.rst",
42+
"vendor/bin/wp-documentor parse ./src/ --format=phpdocumentor-rst --type=filters > docs/filters.rst",
43+
"@phpdoc"
44+
]
4045
}
4146
}

docs/actions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Actions
55

66
https://developer.wordpress.org/plugins/hooks/actions/
77

8-
*— Find a way to add the WordPress actions here. —*
8+

docs/filters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Filters
55

66
https://developer.wordpress.org/plugins/hooks/filters/
77

8-
*— Find a way to add the WordPress actions here. —*
8+

vendor-bin/phpdocumentor/composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor-bin/update/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

vendor-bin/update/composer.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"pronamic/wp-documentor": "dev-main"
4+
}
5+
}

0 commit comments

Comments
 (0)