定制 bhenk/doc2rst 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bhenk/doc2rst

最新稳定版本:1.0.1

Composer 安装命令:

composer require bhenk/doc2rst

包简介

PHPDocs to reStructuredText generator

README 文档

README

Documentation Status

PHPDoc to reStructuredText

Doc2rst generates reStructuredText from PHP-source trees. The generated reStructuredText than again can act as a source for Sphinx, the versatile tool that builds -amongst others- html.

Doc2rst is written in PHP.
Requirement: php >=8.1
Documentation: https://doc2rst.readthedocs.io/en/latest/index.html

Run as phar

Download the latest phar-file and place it in your project root folder. Supposing your documentation folder is called docs, issue the quickstart command:

 ./doc2rst.phar -q ./docs

This will place 3 configuration files in your docs folder. Inspect and correct docs/d2r-conf.php than run

 ./doc2rst.phar -r ./docs

This will generate the reStructuredText files in your docs/api folder.

Run as requirement

As you probably only need doc2rst during development you can add the –dev option to the composer command:

 composer require --dev bhenk/doc2rst

Supposing your documentation folder is called docs, run quickstart to install the configuration files in your docs folder:

 $process = new ProcessManager("path/to/docs");  
 $process->quickStart();

This will place 3 configuration files in your docs folder. Inspect and correct docs/d2r-conf.php than run

 $process = new ProcessManager("path/to/docs");  
 $process->run();

This will generate the reStructuredText files in your docs/api folder.

Configuration

For a detailed discussion on configuration options see run configuration (RC enum).

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2023-03-17