We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d6cdd3 commit e98cebaCopy full SHA for e98ceba
src/CI/MissingFilesChecker.php
@@ -31,10 +31,10 @@ public function getMissingFiles(): array
31
$orphanedFiles = [];
32
33
foreach ($this->finder as $file) {
34
- $htmlFile = str_replace(
35
- [$this->buildContext->getSourceDir(), '.rst'],
36
- [$this->buildContext->getOutputDir(), '.html'],
37
- $file->getRealPath()
+ $htmlFile = sprintf(
+ '%s/%s.html',
+ $this->buildContext->getOutputDir(),
+ $file->getFilenameWithoutExtension()
38
);
39
40
$firstLine = fgets(fopen($file->getRealPath(), 'r'));
0 commit comments