summaryrefslogtreecommitdiffstats
path: root/tests/test_sphinx/test_sphinx_builds/test_includes.xml
blob: 1e8779c55166717331077079fc67a8a1f7ba6ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<document source="index.md">
    <section ids="main-title" names="main\ title">
        <title>
            Main Title
        <target refid="inc-header">
        <section ids="a-sub-heading-in-include inc-header" names="a\ sub-heading\ in\ include inc_header">
            <title>
                A Sub-Heading in Include
            <paragraph>
                Some text with 
                <emphasis>
                    syntax
        <section ids="a-sub-heading-in-nested-include" names="a\ sub-heading\ in\ nested\ include">
            <title>
                A Sub-Heading in Nested Include
            <paragraph>
                Some other text with 
                <strong>
                    syntax
            <paragraph>
                This relative path will refer to the importing file:
            <figure ids="id1">
                <image candidates="{'*': 'example1.jpg'}" uri="example1.jpg">
                <caption>
                    Caption
            <paragraph>
                This absolute path will refer to the project root (where the 
                <literal>
                    conf.py
                 is):
            <figure ids="id2">
                <image candidates="{'*': 'subfolder/example2.jpg'}" uri="subfolder/example2.jpg">
                <caption>
                    Caption
            <paragraph>
                <image alt="alt" candidates="{'*': 'subfolder/example2.jpg'}" uri="subfolder/example2.jpg">
            <paragraph>
                <image alt="alt" candidates="{'?': 'https://example.com'}" uri="https://example.com">
            <paragraph>
                <pending_xref refdoc="index" refdomain="True" refexplicit="True" reftarget="index.md" reftype="myst" refwarn="True">
                    <inline classes="xref myst">
                        text
            <paragraph>
                <pending_xref refdoc="index" refdomain="std" refexplicit="False" reftarget="inc_header" reftype="ref" refwarn="True">
                    <inline classes="xref std std-ref">
                        inc_header
            <literal_block classes="code python" source="include_code.py" xml:space="preserve">
                <inline classes="keyword">
                    def
                 
                <inline classes="name function">
                    a_func
                <inline classes="punctuation">
                    (
                <inline classes="name">
                    param
                <inline classes="punctuation">
                    ):
                
                    
                <inline classes="name builtin">
                    print
                <inline classes="punctuation">
                    (
                <inline classes="name">
                    param
                <inline classes="punctuation">
                    )
            <literal_block classes="code python" source="include_code.py" xml:space="preserve">
                <inline classes="ln">
                    0 
                <inline classes="keyword">
                    def
                 
                <inline classes="name function">
                    a_func
                <inline classes="punctuation">
                    (
                <inline classes="name">
                    param
                <inline classes="punctuation">
                    ):
                
                <inline classes="ln">
                    1 
                    
                <inline classes="name builtin">
                    print
                <inline classes="punctuation">
                    (
                <inline classes="name">
                    param
                <inline classes="punctuation">
                    )
            <literal_block source="include_literal.txt" xml:space="preserve">
                This should be *literal*
                
                Lots
                of
                lines
                so we can select some
            <literal_block ids="literal-ref" names="literal_ref" source="include_literal.txt" xml:space="preserve">
                <inline classes="ln">
                    0 
                Lots
                <inline classes="ln">
                    1 
                of
            <section ids="a-sub-sub-heading" names="a\ sub-sub-heading">
                <title>
                    A Sub-sub-Heading
                <paragraph>
                    some more text