2021-02-16 02:23:40 +00:00
|
|
|
customized-documentation-schema.txt
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
|
2021-02-16 02:23:40 +00:00
|
|
|
Plugin Footnotes for WordPress, v2.5.4 and later
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
|
2021-02-16 02:23:40 +00:00
|
|
|
Customized documentation schema
|
|
|
|
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
2021-02-08 18:04:15 +00:00
|
|
|
|
2021-02-12 10:18:31 +00:00
|
|
|
In community-based, open source projects, it is important to comprehensively
|
2021-02-08 18:04:15 +00:00
|
|
|
recognize, acknowledge and document how developers, testers and users helped
|
|
|
|
build the product.
|
2021-02-12 10:18:31 +00:00
|
|
|
https://wordpress.org/support/topic/great-tool-1549/#post-14039334
|
2021-02-08 18:04:15 +00:00
|
|
|
|
|
|
|
Note: Per the WordPress Coding Standards, the '@author' tag must not be used.
|
|
|
|
https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/
|
|
|
|
|
2021-02-12 10:18:31 +00:00
|
|
|
PHPDOC tag: Role: Acknowledgment in the changelog:
|
2021-02-16 02:23:40 +00:00
|
|
|
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
2021-02-08 18:04:15 +00:00
|
|
|
@contributor Provided code. “thanks to @USERNAME code contribution.”
|
2021-02-16 02:23:40 +00:00
|
|
|
@contributor Provided design. “thanks to @USERNAME design contribution.”
|
|
|
|
@contributor Provided content. “thanks to @USERNAME design contribution.” (!)
|
2021-02-08 18:04:15 +00:00
|
|
|
|
|
|
|
@reporter Reported a bug. “thanks to @USERNAME bug report.”
|
|
|
|
@reporter Reported an issue. “thanks to @USERNAME issue report.”
|
|
|
|
@reporter Requested a feature. “thanks to @USERNAME issue report.” (!)
|
2021-02-12 10:18:31 +00:00
|
|
|
@reporter Provided feedback. “thanks to @USERNAME feedback.”
|
|
|
|
@reporter Provided an example. “thanks to @USERNAME example provision.”
|
2021-02-08 18:04:15 +00:00
|
|
|
|
|
|
|
@user Allowed insight. “thanks to @USERNAME usage.”
|
|
|
|
|
|
|
|
@accountable Edited the codebase. -
|
|
|
|
|
|
|
|
@committer Uploaded a version. -
|
|
|
|
|
|
|
|
|
|
|
|
PHPDOC tags & custom tags
|
2021-02-12 10:18:31 +00:00
|
|
|
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
▲ Source for standard tags:
|
|
|
|
https://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.pkg.html
|
|
|
|
|
|
|
|
@access
|
|
|
|
@author
|
|
|
|
@copyright
|
|
|
|
@deprecated
|
|
|
|
@example
|
|
|
|
@ignore
|
|
|
|
@internal
|
|
|
|
@link
|
|
|
|
@see
|
|
|
|
@since
|
|
|
|
@tutorial
|
|
|
|
@version
|
|
|
|
inline {@internal}}
|
|
|
|
inline {@inheritdoc}
|
|
|
|
inline {@link}
|
|
|
|
|
|
|
|
Sidepane:
|
|
|
|
|
|
|
|
phpDocumentor tags
|
2021-02-12 10:18:31 +00:00
|
|
|
@abstract
|
|
|
|
@access
|
|
|
|
@author
|
|
|
|
@category
|
|
|
|
@copyright
|
|
|
|
@deprecated
|
|
|
|
@example
|
|
|
|
@final
|
|
|
|
@filesource
|
|
|
|
@global
|
|
|
|
@ignore
|
|
|
|
@internal
|
|
|
|
@license
|
|
|
|
@link
|
|
|
|
@method
|
|
|
|
@name
|
|
|
|
@package
|
|
|
|
@param
|
|
|
|
@property
|
|
|
|
@return
|
|
|
|
@see
|
|
|
|
@since
|
|
|
|
@static
|
|
|
|
@staticvar
|
|
|
|
@subpackage
|
|
|
|
@todo
|
|
|
|
@tutorial
|
|
|
|
@uses
|
|
|
|
@var
|
|
|
|
@version
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
phpDocumentor Inline tags
|
2021-02-12 10:18:31 +00:00
|
|
|
inline {@example}
|
|
|
|
inline {@id}
|
|
|
|
inline {@internal}}
|
|
|
|
inline {@inheritdoc}
|
|
|
|
inline {@link}
|
|
|
|
inline {@source}
|
|
|
|
inline {@toc}
|
|
|
|
inline {@tutorial}
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
▲ Tags required/recommended by WordPress coding standard:
|
|
|
|
https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/
|
2021-02-08 18:04:15 +00:00
|
|
|
|
|
|
|
Note: The only tag added from draft PSR-5 recommendations is @type.
|
|
|
|
https://stackoverflow.com/questions/48202550/source-of-type-tag-in-docblock
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
@access
|
|
|
|
@author [DO NOT USE]
|
|
|
|
@copyright
|
|
|
|
@deprecated
|
|
|
|
@global
|
|
|
|
@ignore
|
|
|
|
@internal
|
|
|
|
@license
|
|
|
|
@link
|
|
|
|
@method
|
|
|
|
@package
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
@see
|
|
|
|
@since
|
|
|
|
@static
|
|
|
|
@staticvar
|
|
|
|
@subpackage
|
|
|
|
@todo
|
|
|
|
@type
|
|
|
|
@uses
|
|
|
|
@var
|
|
|
|
|
|
|
|
|
2021-02-08 18:04:15 +00:00
|
|
|
▲ Tags added by PHPStan:
|
|
|
|
https://phpstan.org/blog/generics-in-php-using-phpdocs
|
|
|
|
|
|
|
|
@extends
|
|
|
|
@implements
|
|
|
|
@template
|
|
|
|
|
|
|
|
|
2021-02-16 02:23:40 +00:00
|
|
|
▲ Tags supported in Atom TextMate found in VS Code 1.47.3:
|
2021-02-06 01:57:25 +00:00
|
|
|
/usr/share/code/resources/app/extensions/php/syntaxes/php.tmLanguage.json
|
2021-02-08 18:04:15 +00:00
|
|
|
Note the 4 tags appended to the list, hence initially missing.
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
@api
|
|
|
|
@abstract
|
|
|
|
@author
|
|
|
|
@category
|
|
|
|
@copyright
|
|
|
|
@example
|
|
|
|
@global
|
|
|
|
@inherit[Dd]oc
|
|
|
|
@internal
|
|
|
|
@license
|
|
|
|
@link
|
|
|
|
@method
|
|
|
|
@property(-(read|write))?
|
|
|
|
@package
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
@see
|
|
|
|
@since
|
|
|
|
@source
|
|
|
|
@static
|
|
|
|
@subpackage
|
|
|
|
@throws
|
|
|
|
@todo
|
|
|
|
@var
|
|
|
|
@version
|
|
|
|
@uses
|
|
|
|
@deprecated
|
|
|
|
@final
|
|
|
|
@ignore
|
|
|
|
|
|
|
|
MISSING TAGS:
|
|
|
|
|
|
|
|
- wrt phpDocumentor:
|
|
|
|
@access
|
|
|
|
@filesource
|
|
|
|
@id
|
|
|
|
@name
|
|
|
|
@staticvar
|
|
|
|
@toc
|
|
|
|
@tutorial
|
|
|
|
@usedby
|
|
|
|
|
|
|
|
- wrt WordPress:
|
|
|
|
@type
|
|
|
|
|
2021-02-08 18:04:15 +00:00
|
|
|
- wrt PHPStan:
|
|
|
|
@extends
|
|
|
|
@implements
|
|
|
|
@template
|
2021-02-06 01:57:25 +00:00
|
|
|
|
2021-02-08 18:04:15 +00:00
|
|
|
|
2021-02-16 02:23:40 +00:00
|
|
|
▲ up-to-date list (standard/WP/PHPStan, custom):
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
@api
|
|
|
|
@abstract
|
|
|
|
@access
|
|
|
|
@author
|
|
|
|
@category
|
|
|
|
@copyright
|
|
|
|
@deprecated
|
|
|
|
@example
|
2021-02-08 18:04:15 +00:00
|
|
|
@extends
|
2021-02-06 01:57:25 +00:00
|
|
|
@filesource
|
|
|
|
@final
|
|
|
|
@global
|
|
|
|
@id
|
|
|
|
@ignore
|
2021-02-08 18:04:15 +00:00
|
|
|
@implements
|
2021-02-06 01:57:25 +00:00
|
|
|
@inherit[Dd]oc
|
|
|
|
@internal
|
|
|
|
@license
|
|
|
|
@link
|
|
|
|
@method
|
|
|
|
@name
|
|
|
|
@package
|
|
|
|
@param
|
|
|
|
@property(-(read|write))?
|
|
|
|
@return
|
|
|
|
@see
|
|
|
|
@since
|
|
|
|
@source
|
|
|
|
@static
|
|
|
|
@staticvar
|
|
|
|
@subpackage
|
2021-02-08 18:04:15 +00:00
|
|
|
@template
|
2021-02-06 01:57:25 +00:00
|
|
|
@throws
|
|
|
|
@toc
|
|
|
|
@todo
|
|
|
|
@tutorial
|
|
|
|
@type
|
|
|
|
@usedby
|
|
|
|
@uses
|
|
|
|
@var
|
|
|
|
@version
|
|
|
|
|
|
|
|
@accountable
|
|
|
|
@bib
|
|
|
|
@biblio
|
|
|
|
@callback
|
|
|
|
@commit
|
|
|
|
@committer
|
|
|
|
@contributor
|
|
|
|
@courtesy
|
|
|
|
@date
|
|
|
|
@datetime
|
|
|
|
@lastmodified
|
|
|
|
@modified
|
|
|
|
@publisher
|
|
|
|
@reporter
|
2021-03-05 07:44:15 +00:00
|
|
|
@revision
|
|
|
|
@timestamp
|
2021-02-08 18:04:15 +00:00
|
|
|
@user
|
2021-02-06 01:57:25 +00:00
|
|
|
|
|
|
|
|
2021-03-05 07:44:15 +00:00
|
|
|
▲ Config (original, missing and added tags), example of VS Code.
|
2021-02-06 01:57:25 +00:00
|
|
|
/usr/share/code/resources/app/extensions/php/syntaxes/php.tmLanguage.json
|
|
|
|
|
2021-02-08 18:04:15 +00:00
|
|
|
original:
|
|
|
|
abstract|api|author|category|copyright|deprecated|example|final|global|ignore|inherit[Dd]oc|internal|license|link|method|package|param|property(-(read|write))?|return|see|since|source|static|subpackage|throws|todo|uses|var|version
|
|
|
|
|
|
|
|
missing:
|
|
|
|
|access|filesource|id|name|staticvar|toc|tutorial|usedby
|
|
|
|
|
|
|
|
WordPress:
|
|
|
|
|type
|
|
|
|
|
|
|
|
PHPStan:
|
|
|
|
|extends|implements|template
|
|
|
|
|
|
|
|
custom:
|
2021-03-05 07:44:15 +00:00
|
|
|
|accountable|bib|biblio|callback|commit|committer|contributor|courtesy|date|datetime|lastmodified|modified|publisher|reporter|revision|timestamp|user
|