sample implementation of phpdocumentor using sphinx
Project description
tk.phpautodoc
tk.phpautodoc is sphinx extension to embed PHPDocs to sphinx document. It works like sphinx.ext.autodoc.
Setup
Install this package and add ‘sphinxcontrib_phpautodoc’ to extensions list:
# in conf.py extensions += ['sphinxcontrib.phpdomain', 'sphinxcontrib_phpautodoc']
That’s all.
Directives
phpautomodule
phpautomodule works like automodule directive in sphinx.ext.autodoc. It parses .php file, and then pick up functions, classes and methods to your docs.
ex:
.. phpautomodule:: :filename: path/to/source_code.php :members: :undoc-members:
phpautoclass
phpautoclass works like autoclass directive in sphinx.ext.autodoc. It parses .php file, and then pick up classes and their members to your docs.
ex:
.. phpautoclass:: MyClass,MySubClass :filename: path/to/source_code.php :members: :undoc-members:If you do not specify any class-names, phpautoclass picks up all classes in .php file.
ex:
.. phpautoclass:: :filename: path/to/source_code.php :members: :undoc-members:
LICENSE
Apache License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tk.phpautodoc-1.1.0.tar.gz
.
File metadata
- Download URL: tk.phpautodoc-1.1.0.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0f85bc01d14370744aa37599b088aab37be28522e7472a82be7f4860dd5baf4 |
|
MD5 | 2ee1f1e2412bd2359ec05511daeb78c4 |
|
BLAKE2b-256 | 5caa400e3292481410beed817868a3e4cb6ff278ae9dee42fefff2c30f70105d |