src/Commands/GenerateDocumentationCommand.php
protected function createVersionIndex($versionDirectory)
    {
        $indexPath = $versionDirectory.'/index.md';

        if (! $this->filesystem->exists($indexPath)) {
            $content = $this->generateIndexContent($this->getStub('index'));
            $this->filesystem->put($indexPath, $content);

            return true;
        }

        return false;
    }
protected function createVersionIndex($versionDirectory)
    {
        $indexPath = $versionDirectory.'/index.md';

        if (! $this->filesystem->exists($indexPath)) {
            $content = $this->generateIndexContent($this->getStub('index'));
            $this->filesystem->put($indexPath, $content);

            return true;
        }

        return false;
    }
protected function createVersionIndex ( $ versionDirectory ) { $ indexPath = $ versionDirectory . '/index.md' ; if ( ! $ this -> filesystem -> exists ( $ indexPath ) ) { $ content = $ this -> generateIndexContent ( $ this -> getStub ( 'index' ) ) ; $ this -> filesystem -> put ( $ indexPath , $ content ) ; return true ; } return false ; }
Create index.md for the given version if it's not exists.

@param $versionDirectory
@return bool
@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
Create index . md for the given version if it s not exists .