您的位置:首页 > 编程语言 > PHP开发

phpDoc

2015-11-26 16:38 579 查看

phpdoc 安装和使用


2014-12-29

305


懒人程序
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: