Skip to content

Commit ec73789

Browse files
committed
Introduce Transformer for Content Menus
This reintroduces the contents directive which was destroyed by switching to transformers
1 parent e672eee commit ec73789

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

packages/guides/src/Compiler/NodeTransformers/ContentMenuNodeWithSectionEntryTransformer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use phpDocumentor\Guides\Nodes\Node;
1515

1616
use function assert;
17+
use function count;
1718

1819
use const PHP_INT_MAX;
1920

packages/guides/src/Nodes/DocumentNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function getFootnoteTargetAnonymous(): FootnoteTarget|null
246246
return null;
247247
}
248248

249-
public function getDocumentEntry(): DocumentEntryNode|null
249+
public function getDocumentEntry(): DocumentEntryNode
250250
{
251251
if ($this->documentEntry === null) {
252252
throw new Exception('DocumentEntry may not be accessed before initialization');

tests/Integration/tests/contents/input/skip

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)