firesphere / silverstripe-docgenerator
在刷新时生成APIGen文档
0.0.2
2016-04-17 05:07 UTC
Requires
- apigen/apigen: ^4.1
- silverstripe/framework: >=3.1.0
Requires (Dev)
- phpunit/phpunit: ~3.7@stable
This package is auto-updated.
Last update: 2024-08-29 03:58:08 UTC
README
这是一个APIGen的微小包装器,可以从PHP Docblocks注释生成文档。实际上并没有更多的事情要做。
用法
将希望添加的模块及其目标目录添加到您的config.yml中,如下所示
DocGenerator: enabled: false document_modules: modulename: "Target/Directory/Relative/to/DocRoot"
建议只在开发环境中启用,如下所示
Only: environment: 'dev' --- DocGenerator: enabled: true document_modules: docgenerator: "docgenerator/docs/en/apidocs"
APIGen生成的文档将在针对每个模块的特定目标目录中构建。
此外,您还可以一次为多个目录/模块生成单个API文档
--- Only: environment: 'dev' --- DocGenerator: enabled: true # doc generator control switch multi_module_enabled: true # multi module doc generator control switch multi_module_destination: "apidocs" # documentation generator target directory multi_modules: - mysite - framework - mymodule - myothermodule - ...
由APIGen multi_module_enabled: true
生成的文档将存储在单个目录中。
您已经阅读了整个README吗?太棒了!
下面有一张图片,只为您。
/( ,,,,, )\
_\,;;;;;;;,/_
.-"; ;;;;;;;;; ;"-.
'.__/`_ / \ _`\__.'
| (')| |(') |
| .--' '--. |
|/ o o \|
| |
/ \ _..=.._ / \
/:. '._____.' \
;::' / \ .;
| _|_ _|_ ::|
.-| '==o==' '|-.
/ | . / \ | \
| | ::| | | .|
| ( ') (. )::|
|: | |; U U ;|:: | `|
|' | | \ U U / |' | |
##V| |_/`"""`\_| |V##
##V## ##V##