itskp-odense/vendor/voku/portable-ascii/build/generate_docs.php

27 lines
520 B
PHP
Raw Normal View History

2021-06-01 08:17:03 +00:00
<?php
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/vendor/autoload.php';
$readmeGenerator = new \voku\PhpReadmeHelper\GenerateApi();
$readmeGenerator->templateMethod = <<<RAW
#### %name%
<a href="#voku-php-readme-class-methods"></a>
%description%
**Parameters:**
%params%
**Return:**
%return%
--------
RAW;
$readmeText = ($readmeGenerator)->generate(
__DIR__ . '/../src/voku/helper/ASCII.php',
__DIR__ . '/docs/base.md'
);
file_put_contents(__DIR__ . '/../README.md', $readmeText);