再顶一下,我用的是phpDocumentor v1.3.0RC6 Web Interface
应该如何填加配置项,我是这么操作的,但生成的文档,并没有我不是我想要的结果
Config:don't use config file
Files: d:\www\doc dir: d:\www\doc
Output target:d:\www\doc Output format:HTML:Smarty:default
Output type: HTML:frames:default
基本都是默认
D:\www\doc目录下是 aa.php,代码如下
<?php
/**
* Common base class of all phpDocumentor classes
*
* As a kind of common base class PhpDocumentorObject holds
* configuration values (e.g. error handling) and debugging
* methods (e.g. introspection()). It does not have a constructor,
* so you can always inheritig PhpDocumentor classes from this
* class without any trouble.
*
* @author Ulf Wendel
* @version $Id: PhpDocumentorObject.php,v 1.3 2001/02/18 15:29:29 uw Exp $
* @package PhpDocumentor
*/
class paint_start {
/**
* print num
* @abstract
*/
var $number;
/**
* print 5 stars
* @abstract
*/
function paint() {
echo "*****";
}
}
?>
然而得到的报告是
Parsing Files ...
PHP Version 4.4.1
phpDocumentor version 1.3.0RC6
Parsing configuration file phpDocumentor.ini...
done
using tokenizer Parser
Grabbing README/INSTALL/CHANGELOG
done
Tutorial/Extended Documentation Parsing Stage
done
General Parsing Stage
Reading file d:/www/doc -- Unable to read file, not a file
Reading file d:/www/doc/aa.php -- Parsing file
WARNING in aa.php on line 27: File "d:\www\doc\aa.php" has no page-level DocBlock, use @package in the first DocBlock to create one
done
Converting From Abstract Parsed Data
Processing Class Inheritance
Processing Root Trees
Processing leftover classes (classes that extend root classes not found in the same package)
done processing leftover classes
Processing Procedural Page Element Name Conflicts
Sorting page elements...done
Formatting @uses list...done
creating d:\\www\\doc/media
Creating Directory d:\\www\\doc/media
copying d:\\www\\doc/media/layout.css
copying d:\\www\\doc/media/print.css
copying d:\\www\\doc/media/style.css
Building indexes...done
Sorting Indexes...done
Sorting @todo list...done
Converting tutorials/extended docs
Formatting Package Indexes... Writing d:\\www\\doc/elementindex_default.html
done
Formatting Index...
Writing d:\\www\\doc/elementindex.html
Writing d:\\www\\doc/li_default.html
Writing d:\\www\\doc/index.html
done
Formatting Left Quick Index...
Writing d:\\www\\doc/classtrees_default.html
done
Converting d:\www\doc\aa.php Procedural Page Elements... Classes... done
Creating Directory d:\\www\\doc/default
Writing d:\\www\\doc/default/_doc---aa.php.html
Converting @todo List...done
Converting Error Log... Writing d:\\www\\doc/errors.html
To view errors and warnings, look at d:\\www\\doc/errors.html
done
Parsing time: 0 seconds
Conversion time: 0 seconds
Total Documentation Time: 0 seconds
done
Operation Completed!!