Phpdocumentor Generating Documents

Source: Internet
Author: User

Recent projects require Phpdoc to generate documents, install Phpdocumentor First, install with pear: Switch User: su root install phpdocumentor:pear install Phpdocumentor generate document: Phpdoc–h Will get a detailed list of phpdocumentor parameters. Let's take a look at some of the most important ones. -D  This directory represents the original PHP file directory that needs to generate the document (note is the directory)-T  this directory represents the generated document directory-O  This parameter represents the generated document format, such as HTML format, parameter is phpdoc-d/mnt/ Www/ci_system_3/application/controllers/api1-t/mnt/www/sui-o HTML:frames:phpedit    Browse to generate document results I am disappointed that the program is garbled in Chinese, After Google search, Phpdocumentor's default encoding is: Iso-8859-1, my projects are UTF8 encoded, so you need to change the code to Utf-8. Go to the Phpdocumentor template directory to change the template file to Utf-8 code: cd/usr/share/pear-data/phpdocumentor/phpdocumentor/ Converters execute string lookup and Replace command: Find./-name ' *.TPL ' | Xargs sed-i ' s/iso-8859-1/utf-8/g '    after execution, then generate the project document, browse the project in Chinese garbled solution. You can also modify the past with this command if the item has been changed for another encoding.

  

Very simple, finished, the interface is too ugly, you can customize the interface. Read the manual.

Phpdocumentor Generating Documents

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.