File: Include_sections.html

package info (click to toggle)
ocaml-odoc 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,744 kB
  • sloc: ml: 37,049; makefile: 124; sh: 79
file content (143 lines) | stat: -rw-r--r-- 5,116 bytes parent folder | download
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head><title>Include_sections (Include_sections)</title>
  <link rel="stylesheet" href="odoc.css"/><meta charset="utf-8"/>
  <meta name="generator" content="odoc 2.1.1"/>
  <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
  <script src="highlight.pack.js"></script>
  <script>hljs.initHighlightingOnLoad();</script>
 </head>
 <body class="odoc">
  <header class="odoc-preamble">
   <h1>Module <code><span>Include_sections</span></code></h1>
  </header>
  <nav class="odoc-toc">
   <ul>
    <li><a href="#something-1_2">Something 1</a>
     <ul><li><a href="#something-2_2">Something 2</a></li></ul>
    </li><li><a href="#something-1-bis_2">Something 1-bis</a></li>
    <li><a href="#second-include">Second include</a>
     <ul>
      <li><a href="#something-1_3">Something 1</a>
       <ul><li><a href="#something-2_3">Something 2</a></li></ul>
      </li><li><a href="#something-1-bis_3">Something 1-bis</a></li>
      <li><a href="#third-include">Third include</a>
       <ul>
        <li><a href="#something-1_4">Something 1</a>
         <ul><li><a href="#something-2_4">Something 2</a></li></ul>
        </li><li><a href="#something-1-bis_4">Something 1-bis</a></li>
       </ul>
      </li>
     </ul>
    </li>
   </ul>
  </nav>
  <div class="odoc-content">
   <div class="odoc-spec">
    <div class="spec module-type" id="module-type-Something" class="anchored">
     <a href="#module-type-Something" class="anchor"></a>
     <code>
      <span><span class="keyword">module</span> 
       <span class="keyword">type</span> 
       <a href="Include_sections-module-type-Something.html">Something</a>
      </span>
      <span> = <span class="keyword">sig</span> ... 
       <span class="keyword">end</span>
      </span>
     </code>
    </div><div class="spec-doc"><p>A module type.</p></div>
   </div>
   <p>Let's include 
    <a href="Include_sections-module-type-Something.html">
     <code>Something</code>
    </a> once
   </p>
   <div class="odoc-include">
    <h2 id="something-1_2"><a href="#something-1_2" class="anchor"></a>
     Something 1
    </h2><p>foo</p>
    <h3 id="something-2_2"><a href="#something-2_2" class="anchor"></a>
     Something 2
    </h3>
    <h2 id="something-1-bis_2">
     <a href="#something-1-bis_2" class="anchor"></a>Something 1-bis
    </h2><p>Some text.</p>
   </div>
   <h2 id="second-include"><a href="#second-include" class="anchor"></a>
    Second include
   </h2>
   <p>Let's include 
    <a href="Include_sections-module-type-Something.html">
     <code>Something</code>
    </a> a second time: the heading level should be shift here.
   </p>
   <div class="odoc-include">
    <h3 id="something-1_3"><a href="#something-1_3" class="anchor"></a>
     Something 1
    </h3><p>foo</p>
    <h4 id="something-2_3"><a href="#something-2_3" class="anchor"></a>
     Something 2
    </h4>
    <h3 id="something-1-bis_3">
     <a href="#something-1-bis_3" class="anchor"></a>Something 1-bis
    </h3><p>Some text.</p>
   </div>
   <h3 id="third-include"><a href="#third-include" class="anchor"></a>
    Third include
   </h3><p>Shifted some more.</p>
   <div class="odoc-include">
    <h4 id="something-1_4"><a href="#something-1_4" class="anchor"></a>
     Something 1
    </h4><p>foo</p>
    <h5 id="something-2_4"><a href="#something-2_4" class="anchor"></a>
     Something 2
    </h5>
    <h4 id="something-1-bis_4">
     <a href="#something-1-bis_4" class="anchor"></a>Something 1-bis
    </h4><p>Some text.</p>
   </div>
   <p>And let's include it again, but without inlining it this time: 
    the ToC shouldn't grow.
   </p>
   <div class="odoc-include">
    <details open="open">
     <summary class="spec include">
      <code>
       <span><span class="keyword">include</span> 
        <a href="Include_sections-module-type-Something.html">Something</a>
       </span>
      </code>
     </summary>
     <div class="odoc-spec">
      <div class="spec value" id="val-something" class="anchored">
       <a href="#val-something" class="anchor"></a>
       <code><span><span class="keyword">val</span> something : unit</span>
       </code>
      </div>
     </div>
     <h2 id="something-1_5"><a href="#something-1_5" class="anchor"></a>
      Something 1
     </h2><p>foo</p>
     <div class="odoc-spec">
      <div class="spec value" id="val-foo" class="anchored">
       <a href="#val-foo" class="anchor"></a>
       <code><span><span class="keyword">val</span> foo : unit</span></code>
      </div>
     </div>
     <h3 id="something-2_5"><a href="#something-2_5" class="anchor"></a>
      Something 2
     </h3>
     <div class="odoc-spec">
      <div class="spec value" id="val-bar" class="anchored">
       <a href="#val-bar" class="anchor"></a>
       <code><span><span class="keyword">val</span> bar : unit</span></code>
      </div><div class="spec-doc"><p>foo bar</p></div>
     </div>
     <h2 id="something-1-bis_5">
      <a href="#something-1-bis_5" class="anchor"></a>Something 1-bis
     </h2><p>Some text.</p>
    </details>
   </div>
  </div>
 </body>
</html>