Library/Documentation.php
private function findOutputDirectory($outputDir)
    {
        $outputDir = str_replace('%version%', $this->config->get('version'), $outputDir);

        if ('/' !== $outputDir[0]) {
            $outputDir = getcwd().'/'.$outputDir;
        }

        return $outputDir;
    }
private function findOutputDirectory($outputDir)
    {
        $outputDir = str_replace('%version%', $this->config->get('version'), $outputDir);

        if ('/' !== $outputDir[0]) {
            $outputDir = getcwd().'/'.$outputDir;
        }

        return $outputDir;
    }
private function findOutputDirectory ( $ outputDir ) { $ outputDir = str_replace ( '%version%' , $ this -> config -> get ( 'version' ) , $ outputDir ) ; if ( '/' !== $ outputDir [ 0 ] ) { $ outputDir = getcwd ( ) . '/' . $ outputDir ; } return $ outputDir ; }
Find the directory where the doc is going to be generated depending on the command line options and the config.

output directory is checked in this order :
=> check if the command line argument --output-directory was given
=> if not ; check if config config[api][path] was given


@param string $outputDir

@return string|null
Find the directory where the doc is going to be generated depending on the command line options and the config .