phpDoc

来源:互联网 发布:国网内网网络大学地址 编辑:程序博客网 时间:2024/06/11 13:27

phpdoc 安装和使用

Created2014-12-29  Views 305    Author 懒人程序
phpdoc   
安装  
pear channel-discover pear.phpdoc.org
pear install phpdoc/phpDocumentor

安装完成后进入
/usr/share/php/phpDocumentor/
具体位置还需要根据系统来定
修改1
 /usr/share/php/phpDocumentor/data/templates/clean/css/template.css  删除第一行,是外部加载有点慢,要是无所谓的话也没时
修改2(不修改这里   如果生成文件有子目录,就不能查看文件内容)
/usr/share/php/phpDocumentor/src/phpDocumentor/Plugin/Twig/Writer/Twig.php
306行
$destination = str_replace(array('/','\\'),DIRECTORY_SEPARATOR, $destination);

$destination = str_replace(array('/','\\'), DIRECTORY_SEPARATOR, urldecode($destination));


完成后直接到要生成文档的php目录
phpdoc run -d ./ -t /data/web/php/test/docs --title "说明文档"

这样就生成了   -d  是要生成的文件目录
             -t  生成的文件存放路径
             --title  是生成的文件title
0 0
原创粉丝点击