@@ -16,7 +16,12 @@ children. If we omit the asset child, all assets reference resolving fail:
16
16
$ odoc compile index . mld -- child module-test -- child page-other_page
17
17
$ odoc compile other_page. mld -I . -- parent index
18
18
$ odoc compile test. cmti -I . -- parent index
19
- $ for i in *. odoc; do odoc link -I . $ i ; done
19
+ $ odoc link -I . test. odoc
20
+ File " test.mli" , line 5 , characters 39 -78:
21
+ Warning: Failed to resolve reference unresolvedroot(other_page). caml_not. gif Couldn't find asset " caml_not.gif"
22
+ File " test.mli" , line 3 , characters 4 -34:
23
+ Warning: Failed to resolve reference unresolvedroot(caml. gif) Couldn't find asset " caml.gif"
24
+ $ odoc link -I . page-index. odoc
20
25
File " index.mld" , line 10 , characters 2 -15:
21
26
Warning: Failed to resolve reference unresolvedroot(caml. gif) Couldn't find " caml.gif"
22
27
File " index.mld" , line 9 , characters 2 -36:
@@ -29,12 +34,9 @@ children. If we omit the asset child, all assets reference resolving fail:
29
34
Warning: Failed to resolve reference unresolvedroot(other_page). caml_not. gif Couldn't find asset " caml_not.gif"
30
35
File " index.mld" , line 3 , characters 2 -32:
31
36
Warning: Failed to resolve reference unresolvedroot(caml. gif) Couldn't find asset " caml.gif"
37
+ $ odoc link -I . page-other_page. odoc
32
38
File " other_page.mld" , line 3 , characters 22 -41:
33
39
Warning: Failed to resolve reference unresolvedroot(caml. gif) Couldn't find asset " caml.gif"
34
- File " test.mli" , line 4 , characters 39 -78:
35
- Warning: Failed to resolve reference unresolvedroot(other_page). caml_not. gif Couldn't find asset " caml_not.gif"
36
- File " test.mli" , line 2 , characters 4 -34:
37
- Warning: Failed to resolve reference unresolvedroot(caml. gif) Couldn't find asset " caml.gif"
38
40
39
41
We should pass the asset as child of a page.
40
42
@@ -62,8 +64,8 @@ Note that the html links are correct (there are dead links due to missing assets
62
64
<li ><a href="other_page/caml_not.gif" ><code >caml_not. gif</code ></a ></li >
63
65
<li ><a href="other_page/caml_not.gif" ><code >caml_not. gif</code ></a ></li >
64
66
$ grep caml. gif html/ index / Test / index . html
65
- <p >A <a href="../caml.gif" title="caml.gif" >reference</a > to an asset< /p >
67
+ <p >A <a href="../caml.gif" title="caml.gif" >reference</a > to an asset
66
68
$ grep caml_not. gif html/ index / Test / index . html
67
- <a href="../other_page/caml_not.gif" ><code >caml_not. gif</code ></a >
69
+ <a href="../other_page/caml_not.gif" ><code >caml_not. gif</code ></a >
68
70
$ grep caml. gif html/ index / other_page/ index . html
69
71
<p >Hello darkness my old <a href="../caml.gif" ><code >caml. gif</code ></a >.
0 commit comments