@@ -21,6 +21,9 @@ Files containing some values:
21
21
class cls = object end
22
22
class cls ' = cls
23
23
class type ct = object end
24
+
25
+
26
+ let x _ = raise Exn
24
27
25
28
Source pages require a parent:
26
29
@@ -47,7 +50,12 @@ Now, compile the pages with the --source option:
47
50
48
51
$ odoc compile -I . -- source-name a. ml -- source-parent-file src-source. odoc a. cmt
49
52
$ odoc link -I . a. odoc
53
+ $ odoc link -I . page-root. odoc
54
+ $ odoc link -I . src-source. odoc
55
+ $ odoc html-generate -- indent -o html src-source. odocl
56
+ $ odoc html-generate -- indent -o html page-root. odocl
50
57
$ odoc html-generate -- source a. ml -- indent -o html a. odocl
58
+ $ odoc support-files -o html
51
59
52
60
Source links generated in the documentation:
53
61
@@ -59,10 +67,6 @@ Source links generated in the documentation:
59
67
<div class="spec type anchored" id="type-t" >
60
68
<a href="#type-t" class="anchor" ></a >
61
69
<a href="../root/source/a.ml.html#type-t" class="source_link" >Source</a >
62
- --
63
- <div class="spec value anchored" id="val-x" >
64
- <a href="#val-x" class="anchor" ></a >
65
- <a href="../root/source/a.ml.html#value-x" class="source_link" >Source
66
70
--
67
71
<div class="spec value anchored" id="val-y" >
68
72
<a href="#val-y" class="anchor" ></a >
@@ -98,7 +102,7 @@ Source links generated in the documentation:
98
102
--
99
103
<div class="spec exception anchored" id="exception-Exn" >
100
104
<a href="#exception-Exn" class="anchor" ></a >
101
- <a href="../root/source/a.ml.html#def_11 " class="source_link" >Source< /a >
105
+ <a href="../root/source/a.ml.html#exception-Exn " class="source_link" >
102
106
--
103
107
<div class="spec class anchored" id="class-cls" >
104
108
<a href="#class-cls" class="anchor" ></a >
@@ -111,6 +115,10 @@ Source links generated in the documentation:
111
115
<div class="spec class-type anchored" id="class-type-ct" >
112
116
<a href="#class-type-ct" class="anchor" ></a >
113
117
<a href="../root/source/a.ml.html#class_type-ct" class="source_link" >
118
+ --
119
+ <div class="spec value anchored" id="val-x" >
120
+ <a href="#val-x" class="anchor" ></a >
121
+ <a href="../root/source/a.ml.html#value-x" class="source_link" >Source
114
122
115
123
Ids generated in the source code:
116
124
@@ -135,42 +143,26 @@ Ids generated in the source code:
135
143
id= " L18"
136
144
id= " L19"
137
145
id= " L20"
146
+ id= " L21"
147
+ id= " L22"
148
+ id= " L23"
138
149
id= " type-t"
139
- id= " value-x "
150
+ id= " value-{ x } 2 "
140
151
id= " value-y"
141
152
id= " value-z"
142
153
id= " local_a_47"
143
- id= " def-5"
144
- id= " def-6"
145
- id= " def-7"
146
- id= " def-8"
147
- id= " def-9"
148
- id= " def-10"
149
- id= " def-11"
150
- id= " def-12"
151
- id= " def-14"
152
- id= " def-15"
153
-
154
- Another example, with a cmti file:
155
-
156
- $ printf " b.ml\n " > source_tree. map
157
- $ odoc source-tree -I . -- parent page-root -o src-source2. odoc source_tree. map
158
-
159
- $ ocamlc -bin-annot b. mli
160
- $ ocamlc -bin-annot b. ml
161
-
162
- When giving a . cmti with the source-name and source-parent option, the cmt file
163
- has to be given explicitely with the -- cmt argument:
164
-
165
- $ odoc compile -I . -- source-name b. ml -- source-parent-file src-source2. odoc b. cmti
166
- -- cmt has to be passed when -- source-parent-file and -- source-name are passed and the input file is not a cmt file.
167
- [2 ]
168
-
169
- $ odoc compile -I . -- cmt b. cmt -- source-name b. ml -- source-parent-file src-source2. odoc b. cmti
170
-
171
- The -- cmt argument has to be compatible with a cmt file given as input:
154
+ id= " module-A"
155
+ id= " module-B"
156
+ id= " module_type-T"
157
+ id= " module_type-U"
158
+ id= " type-ext"
159
+ id= " def_10"
160
+ id= " exception-Exn"
161
+ id= " class-cls"
162
+ id= " class-cls'"
163
+ id= " class_type-ct"
164
+ id= " value-x"
172
165
173
- $ cp b. cmt other. cmt
174
- $ odoc compile -I . -- cmt other. cmt -- source-name b. ml -- source-parent-file src-source2. odoc b. cmt
175
- -- cmt has to be equal to the input file when this one has . cmt extension.
176
- [2 ]
166
+ $ firefox html/ root/ source/ a. ml. html
167
+ Gtk-Message: 12 : 16 : 26.688 : Failed to load module " xapp-gtk3-module"
168
+ Gtk-Message: 12 : 16 : 26.689 : Not loading module " atk-bridge" : The functionality is provided by GTK natively. Please try to not load it.
0 commit comments