Skip to content

Commit 9640094

Browse files
committed
[TASK] Make all documents orphans or included in a menu
1 parent 870baca commit 9640094

File tree

23 files changed

+72
-0
lines changed

23 files changed

+72
-0
lines changed

packages/guides/src/Compiler/CompilerContext.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ public function getShadowTree(): TreeNode
7373
/** @return array<string, string> */
7474
public function getLoggerInformation(): array
7575
{
76+
if (!isset($this->shadowTree)) {
77+
return [];
78+
}
7679
return [...$this->getDocumentNode()->getLoggerInformation()];
7780
}
7881
}

tests/Integration/tests/anchor/anchor-ref-title-equals-title/input/overview.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13

24
========
35
Overview

tests/Integration/tests/anchor/anchor-to-page/input/rst-overview.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. _rst-overview:
24

35
Overview

tests/Integration/tests/anchor/anchor-to-page/input/sphinx-overview.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. _sphinx-overview:
24

35
Overview

tests/Integration/tests/anchor/anchor-to-title-on-another-page/input/overview.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. _rst-overview:
24

35
Overview

tests/Integration/tests/anchor/anchor-within-text/input/rst-overview.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. _rst-overview:
24

35
RST Overview

tests/Integration/tests/anchor/anchor-within-text/input/sphinx-overview.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. _sphinx-overview:
24

35
Sphinx Overview

tests/Integration/tests/body-elements/citation/citation-page/input/citations.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
==============
24
Document Title
35
==============

tests/Integration/tests/body-elements/footnote/footnotes-on-document/input/page1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
======
24
Page 1
35
======

tests/Integration/tests/directives/role-directive/input/someFile.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Some File
24
==========
35

0 commit comments

Comments
 (0)