forked from Codeception/module-phalcon5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRobofile.php
21 lines (17 loc) · 792 Bytes
/
Robofile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
require __DIR__ . '/vendor/autoload.php';
use Codeception\Module\Phalcon5;
use Codeception\Util\DocumentationHelpers;
class RoboFile extends \Robo\Tasks
{
use DocumentationHelpers;
public function buildDocs()
{
$className = Phalcon5::class;
$classPath = str_replace('\\', '/', $className);
$source = "https://github.com/Codeception/module-phalcon5/tree/master/src/$classPath.php";
$sourceMessage = '<p> </p><div class="alert alert-warning">Module reference is taken from the source code. <a href="' . $source . '">Help us to improve documentation. Edit module reference</a></div>';
$documentationFile = 'documentation.md';
$this->generateDocumentationForClass($className, $documentationFile, $sourceMessage);
}
}