DocBlox 配置:找不到给定的默认模板或不可读

发布于 2024-12-27 17:47:52 字数 736 浏览 3 评论 0原文

我已经使用 PEAR 在 Ubuntu 11.10 上安装了最新的 0.18.1 DocBlox。如果我在命令行上指定所有内容,一切似乎都工作正常。但是,单独使用 docblox 将无法在当前目录中找到 docblox.xml。指定 doxblox -c (或 --config)./docblox.xml 也不起作用。我已验证权限并且该文件存在。

我有一个目录Testing,其中包含一些用于测试的简单文件。

/home/Testing$ docblox --config ./docblox.xml    
DocBlox version 0.18.1    

ERROR: The given template default could not be found or is not readable    

/home/Testing$ ls -l    
total 20    
-rw-rw-rw- 1 dev      dev       992 2012-01-17  12:03  docblox.xml    
-rw-rw-rw- 1 dev      dev       107 2012-01-17  11:59  index.php    
-rw-rw-rw- 1 dev      dev       769 2012-01-17  12:01  SOME_CLASS.class    
-rw-rw-rw- 1 dev      dev      1335 2012-01-17  12:02  SOME_CLASS.class.test    

I have installed the latest 0.18.1 DocBlox on Ubuntu 11.10 using PEAR. Everything seems to work fine if I specify everything on the command line. However, using the docblox alone will not find the docblox.xml in the current directory. Specifying the doxblox -c (or --config) ./docblox.xml does not work either. I have verified permissions and that the file exists.

I have a directory Testing with some simple files for testing.

/home/Testing$ docblox --config ./docblox.xml    
DocBlox version 0.18.1    

ERROR: The given template default could not be found or is not readable    

/home/Testing$ ls -l    
total 20    
-rw-rw-rw- 1 dev      dev       992 2012-01-17  12:03  docblox.xml    
-rw-rw-rw- 1 dev      dev       107 2012-01-17  11:59  index.php    
-rw-rw-rw- 1 dev      dev       769 2012-01-17  12:01  SOME_CLASS.class    
-rw-rw-rw- 1 dev      dev      1335 2012-01-17  12:02  SOME_CLASS.class.test    

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

∞梦里开花 2025-01-03 17:47:53

default 模板在版本 0.18.0 之前一直是事实上的模板,并在版本 0.18 中重命名为 new_black。也许您直接在自己的配置中提到 default 模板?

尝试安装 new_black 模板,并在配置中省略模板名称或定义 new_black

The default template was until version 0.18.0 the de-facto template and has been renamed to new_black in version 0.18. Perhaps you directly mention the default template in your own configuration?

try to install the new_black template and either omit the template name in your configuration or define new_black.

陌上青苔 2025-01-03 17:47:53

您可能必须安装主题。在维护者将主题与核心分离后,我必须在第一个版本中自己做这件事

$ pear list-all -c docblox
All packages [Channel docblox]:
===============================
Package                                Latest Local
docblox/DocBlox                        0.18.1 0.18.1 PHP 5.3 compatible API Documentation generator aimed at projects of all sizes and Continuous Integration
docblox/DocBlox_Template_abstract      1.0.1         The abstract template for DocBlox
docblox/DocBlox_Template_checkstyle    1.0.0  1.0.0  The checkstyle template for DocBlox
docblox/DocBlox_Template_new_black     1.0.1  1.0.1  The new_black template for DocBlox
docblox/DocBlox_Template_old_ocean     1.0.0         The old_ocean template for DocBlox
docblox/DocBlox_Template_pdf_old_ocean 1.0.0         The pdf_old_ocean template for DocBlox
docblox/DocBlox_Template_zend          1.0.0         The zend template for DocBlox
docblox/DocBlox_Theme_default          1.0.0         The default theme for DocBlox

$ pear install docblox/DocBlox_Theme_default

You propably must install the theme. I had to do it myself in the first release after the maintainer separated the themes from the core

$ pear list-all -c docblox
All packages [Channel docblox]:
===============================
Package                                Latest Local
docblox/DocBlox                        0.18.1 0.18.1 PHP 5.3 compatible API Documentation generator aimed at projects of all sizes and Continuous Integration
docblox/DocBlox_Template_abstract      1.0.1         The abstract template for DocBlox
docblox/DocBlox_Template_checkstyle    1.0.0  1.0.0  The checkstyle template for DocBlox
docblox/DocBlox_Template_new_black     1.0.1  1.0.1  The new_black template for DocBlox
docblox/DocBlox_Template_old_ocean     1.0.0         The old_ocean template for DocBlox
docblox/DocBlox_Template_pdf_old_ocean 1.0.0         The pdf_old_ocean template for DocBlox
docblox/DocBlox_Template_zend          1.0.0         The zend template for DocBlox
docblox/DocBlox_Theme_default          1.0.0         The default theme for DocBlox

$ pear install docblox/DocBlox_Theme_default
ゞ花落谁相伴 2025-01-03 17:47:53

删除模板部分后,这纠正了我的问题,我可以生成报告和类图。新的 docblox.xml 如下,供需要的人使用。

<?xml version="1.0" encoding="UTF-8" ?>
<docblox>
   <title>My project</title>
   <parser>
       <target>output</target>
       <markers>
           <item>TODO</item>
           <item>FIXME</item>
       </markers>
       <extensions>
           <extension>class</extension>
           <extension>fn</extension>
           <extension>php</extension>
       </extensions>
       <visibility></visibility>
   </parser>
   <transformer>
       <target>output</target>
   </transformer>
   <logging>
       <level>warn</level>
       <paths>
           <default>{APP_ROOT}/data/log/{DATE}.log</default>
           <errors>{APP_ROOT}/data/log/{DATE}.errors.log</errors>
       </paths>
   </logging>
   <files>
       <file>*</file>
       <file>bin/*</file>
       <directory>src</directory>
       <directory>tes??</directory>
       <ignore>test/*</ignore>
   </files>
</docblox>

After removing the template section, this corrected my problems and I can generate the reports and class graph. The new docblox.xml is below for anyone who needs it.

<?xml version="1.0" encoding="UTF-8" ?>
<docblox>
   <title>My project</title>
   <parser>
       <target>output</target>
       <markers>
           <item>TODO</item>
           <item>FIXME</item>
       </markers>
       <extensions>
           <extension>class</extension>
           <extension>fn</extension>
           <extension>php</extension>
       </extensions>
       <visibility></visibility>
   </parser>
   <transformer>
       <target>output</target>
   </transformer>
   <logging>
       <level>warn</level>
       <paths>
           <default>{APP_ROOT}/data/log/{DATE}.log</default>
           <errors>{APP_ROOT}/data/log/{DATE}.errors.log</errors>
       </paths>
   </logging>
   <files>
       <file>*</file>
       <file>bin/*</file>
       <directory>src</directory>
       <directory>tes??</directory>
       <ignore>test/*</ignore>
   </files>
</docblox>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文