Skip to content

Commit 5a7764d

Browse files
committed
[TASK] Make all documents orphans or included in a menu
1 parent 37c362f commit 5a7764d

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

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

tests/Integration/tests/hyperlink-to-page/input/subpages/index.rst

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

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

tests/Integration/tests/images/figure-relative/input/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ An image with relative paths
3030
:alt: Alternative text
3131

3232
Description
33+
34+
35+
.. toctree::
36+
:hidden:
37+
:glob:
38+
39+
subfolder/*

tests/Integration/tests/images/figure-relative/input/subfolder/subpage.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ An image with relative paths
2222
:alt: Alternative text
2323

2424
Description
25+
26+
.. toctree::
27+
:hidden:
28+
:glob:
29+
30+
subfolder/*

tests/Integration/tests/images/image-absolute/input/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ An image with relative paths
2525
.. image:: images/hero2-illustration.svg
2626
:width: 400
2727
:alt: Alternative text
28+
29+
30+
.. toctree::
31+
:hidden:
32+
:glob:
33+
34+
subfolder/*

tests/Integration/tests/images/image-relative/input/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ An image with relative paths
2525
.. image:: images/hero2-illustration.svg
2626
:width: 400
2727
:alt: Alternative text
28+
29+
.. toctree::
30+
:hidden:
31+
:glob:
32+
33+
subfolder/*

tests/Integration/tests/images/image-relative/input/subfolder/subpage.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ An image with relative paths
1818
.. image:: ../images/hero2-illustration.svg
1919
:width: 400
2020
:alt: Alternative text
21+
22+
.. toctree::
23+
:hidden:
24+
:glob:
25+
26+
subfolder/*
27+

tests/Integration/tests/meta/project-meta-global/input/a_page.rst

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

tests/Integration/tests/navigation/docref/input/subfolder/index.rst

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

tests/Integration/tests/navigation/references/input/page.rst

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

tests/Integration/tests/navigation/references/input/subfolder/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
===============
24
Subfolder index
35
===============
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Overview
2+
========
3+
4+
Lorem Ipsum Dolor

0 commit comments

Comments
 (0)