| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function handle() |
||
| 16 | { |
||
| 17 | $sourceOutputPath = 'resources/docs/source'; |
||
| 18 | if (! is_dir($sourceOutputPath)) { |
||
| 19 | $this->error('There is no existing documentation available at ' . $sourceOutputPath . '.'); |
||
| 20 | |||
| 21 | return false; |
||
| 22 | } |
||
| 23 | |||
| 24 | $this->info('Rebuilding API documentation from ' . $sourceOutputPath . '/index.md'); |
||
| 25 | |||
| 26 | $writer = new Writer($this, new DocumentationConfig(config('apidoc'))); |
||
| 27 | $writer->writeHtmlDocs(); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |