diff --git a/scripts/DocGenerator.php b/scripts/DocGenerator.php index 6bc8c11b6b2c..9d414b284f31 100644 --- a/scripts/DocGenerator.php +++ b/scripts/DocGenerator.php @@ -386,8 +386,9 @@ private function buildLink($content) private function buildOutputPath() { $pathInfo = pathinfo($this->currentFile); - $jsonOutputPath = $this->outputPath . substr($pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.json', 4); + $servicePath = substr($pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.json', 4); + $servicePath = strtolower($servicePath); - return strtolower($jsonOutputPath); + return $this->outputPath . $servicePath; } }