Skip to content

Commit f88b96d

Browse files
committed
Fixed the generation of the "prev" option in JSON generator
1 parent b945a54 commit f88b96d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Generator/JsonGenerator.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ private function guessPrev(string $parserFilename): ?array
145145
$meta = $this->getMetaEntry($parserFilename, true);
146146
$parentFile = $meta->getParent();
147147

148-
// no prev if parent is an index
149-
if ('index' === $parentFile) {
150-
return null;
151-
}
152-
153148
[$toc, $indexCurrentFile] = $this->getNextPrevInformation($parserFilename);
154149

155150
// if current file is the first one of the chapter, prev is the direct parent

0 commit comments

Comments
 (0)