Skip to content

Commit 1568f32

Browse files
committed
Fixed documentation generation
1 parent 73781a4 commit 1568f32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RoboFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function docsBranch($branch)
118118
public function buildDocs()
119119
{
120120
$this->say('generating documentation from source files');
121-
$this->taskComposerUpdate()->run();
121+
$this->taskComposerUpdate()->preferSource()->run();
122122
$this->buildDocsModules();
123123
$this->buildDocsUtils();
124124
$this->buildDocsCommands();
@@ -132,7 +132,7 @@ public function buildDocsModules()
132132
{
133133
$this->taskCleanDir('docs/modules')->run();
134134
$this->say("Modules");
135-
$modules = Finder::create()->files()->name('*.php')->in(__DIR__ . '/vendor/codeception/module-*/src/Codeception/Module');
135+
$modules = Finder::create()->files()->name('*.php')->in(__DIR__ . '/vendor/codeception/module-*/src/Codeception/Module')->depth('== 0');
136136
foreach ($modules as $module) {
137137
$moduleName = basename(substr($module, 0, -4));
138138
$className = 'Codeception\Module\\' . $moduleName;

0 commit comments

Comments
 (0)