public function generateDocumentation($packageKey)
    {
        $documentationPath = Files::concatenatePaths([$this->packageManager->getPackage($packageKey)->getPackagePath(), 'Documentation']);
        $contextVariables = [];
        $contextVariables['packageKey'] = $packageKey;

        $templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/conf.py';
        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);
        $targetPathAndFilename = $documentationPath . '/conf.py';
        $this->generateFile($targetPathAndFilename, $fileContent);

        $templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/Makefile';
        $fileContent = file_get_contents($templatePathAndFilename);
        $targetPathAndFilename = $documentationPath . '/Makefile';
        $this->generateFile($targetPathAndFilename, $fileContent);

        $templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/index.rst';
        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);
        $targetPathAndFilename = $documentationPath . '/index.rst';
        $this->generateFile($targetPathAndFilename, $fileContent);

        $targetPathAndFilename = $documentationPath . '/_build/.gitignore';
        $this->generateFile($targetPathAndFilename, '*' . chr(10) . '!.gitignore' . chr(10));
        $targetPathAndFilename = $documentationPath . '/_static/.gitignore';
        $this->generateFile($targetPathAndFilename, '*' . chr(10) . '!.gitignore' . chr(10));
        $targetPathAndFilename = $documentationPath . '/_templates/.gitignore';
        $this->generateFile($targetPathAndFilename, '*' . chr(10) . '!.gitignore' . chr(10));

        return $this->generatedFiles;
    }
public function generateDocumentation($packageKey)
    {
        $documentationPath = Files::concatenatePaths([$this->packageManager->getPackage($packageKey)->getPackagePath(), 'Documentation']);
        $contextVariables = [];
        $contextVariables['packageKey'] = $packageKey;

        $templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/conf.py';
        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);
        $targetPathAndFilename = $documentationPath . '/conf.py';
        $this->generateFile($targetPathAndFilename, $fileContent);

        $templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/Makefile';
        $fileContent = file_get_contents($templatePathAndFilename);
        $targetPathAndFilename = $documentationPath . '/Makefile';
        $this->generateFile($targetPathAndFilename, $fileContent);

        $templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/index.rst';
        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);
        $targetPathAndFilename = $documentationPath . '/index.rst';
        $this->generateFile($targetPathAndFilename, $fileContent);

        $targetPathAndFilename = $documentationPath . '/_build/.gitignore';
        $this->generateFile($targetPathAndFilename, '*' . chr(10) . '!.gitignore' . chr(10));
        $targetPathAndFilename = $documentationPath . '/_static/.gitignore';
        $this->generateFile($targetPathAndFilename, '*' . chr(10) . '!.gitignore' . chr(10));
        $targetPathAndFilename = $documentationPath . '/_templates/.gitignore';
        $this->generateFile($targetPathAndFilename, '*' . chr(10) . '!.gitignore' . chr(10));

        return $this->generatedFiles;
    }
public function generateDocumentation ( $ packageKey ) { $ documentationPath = Files :: concatenatePaths ( [ $ this -> packageManager -> getPackage ( $ packageKey ) -> getPackagePath ( ) , 'Documentation' ] ) ; $ contextVariables = [ ] ; $ contextVariables [ 'packageKey' ] = $ packageKey ; $ templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/conf.py' ; $ fileContent = $ this -> renderTemplate ( $ templatePathAndFilename , $ contextVariables ) ; $ targetPathAndFilename = $ documentationPath . '/conf.py' ; $ this -> generateFile ( $ targetPathAndFilename , $ fileContent ) ; $ templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/Makefile' ; $ fileContent = file_get_contents ( $ templatePathAndFilename ) ; $ targetPathAndFilename = $ documentationPath . '/Makefile' ; $ this -> generateFile ( $ targetPathAndFilename , $ fileContent ) ; $ templatePathAndFilename = 'resource://Neos.Kickstarter/Private/Generator/Documentation/index.rst' ; $ fileContent = $ this -> renderTemplate ( $ templatePathAndFilename , $ contextVariables ) ; $ targetPathAndFilename = $ documentationPath . '/index.rst' ; $ this -> generateFile ( $ targetPathAndFilename , $ fileContent ) ; $ targetPathAndFilename = $ documentationPath . '/_build/.gitignore' ; $ this -> generateFile ( $ targetPathAndFilename , '*' . chr ( 10 ) . '!.gitignore' . chr ( 10 ) ) ; $ targetPathAndFilename = $ documentationPath . '/_static/.gitignore' ; $ this -> generateFile ( $ targetPathAndFilename , '*' . chr ( 10 ) . '!.gitignore' . chr ( 10 ) ) ; $ targetPathAndFilename = $ documentationPath . '/_templates/.gitignore' ; $ this -> generateFile ( $ targetPathAndFilename , '*' . chr ( 10 ) . '!.gitignore' . chr ( 10 ) ) ; return $ this -> generatedFiles ; }
Generate a documentation skeleton for the package key

@param string $packageKey The package key
@return array An array of generated filenames
Generate a documentation skeleton for the package key