Giter Site home page Giter Site logo

bhenk / doc2rst Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 547 KB

PHPDocs to reStructuredText generator

Home Page: https://doc2rst.readthedocs.io/en/latest/index.html#

License: Other

PHP 99.29% Shell 0.71%
phpdoc restructuredtext documentation php sphinx sphinx-documentation

doc2rst's Introduction

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).

doc2rst's People

Contributors

bhenk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.