@@ -2,9 +2,9 @@ Test the JSON output in the presence of expanded modules.
22
33 $ ocamlc -c -bin-annot -o main__A. cmo a. ml -I .
44 $ ocamlc -c -bin-annot main. ml -I .
5- $ odoc compile-impl -- source-id a. ml -I . main__A. cmt -- output-dir .
5+ $ odoc compile-impl -- source-id src / a. ml -I . main__A. cmt -- output-dir .
66 $ odoc compile -I . main__A. cmt
7- $ odoc compile-impl -- source-id main. ml -I . main. cmt -- output-dir .
7+ $ odoc compile-impl -- source-id src / main. ml -I . main. cmt -- output-dir .
88 $ odoc compile -I . main. cmt
99 $ odoc link -I . impl-main__A. odoc
1010 $ odoc link -I . impl-main. odoc
@@ -24,27 +24,27 @@ Test the JSON output in the presence of expanded modules.
2424 html/ Main/ A/ index . html. json
2525 html/ Main/ A/ B/ index . html. json
2626 $ odoc html-targets -- source a. ml -o html impl-main__A. odocl
27- html/ a. ml. html
27+ html/ src / a. ml. html
2828 $ odoc html-targets -- source main. ml -o html impl-main. odocl
29- html/ main. ml. html
29+ html/ src / main. ml. html
3030 $ odoc html-targets -- source a. ml -- as-json -o html impl-main__A. odocl
31- html/ a. ml. html. json
31+ html/ src / a. ml. html. json
3232 $ odoc html-targets -- source main. ml -- as-json -o html impl-main. odocl
33- html/ main. ml. html. json
33+ html/ src / main. ml. html. json
3434
3535 $ odoc html-generate -- source a. ml -- as-json -o html impl-main__A. odocl
3636 $ odoc html-generate -- as-json -o html main__A. odocl
3737 $ odoc html-generate -- source main. ml -- as-json -o html impl-main. odocl
3838 $ odoc html-generate -- as-json -o html main. odocl
3939
4040 $ cat html/ Main/ index . html. json
41- {" type" : " documentation" ," uses_katex" : false," breadcrumbs" : [{" name" : " Main" ," href" : " #" ," kind" : " module" }]," toc" : []," source_anchor" : " ../. /main.ml.html" ," preamble" : " " ," content" : " <div class=\" odoc-spec\" ><div class=\" spec module anchored\" id=\" module-A\" ><a href=\" #module-A\" class=\" anchor\" ></a><a href=\" ../. /a.ml.html\" class=\" source_link\" >Source</a><code><span><span class=\" keyword\" >module</span> <a href=\" A/index.html\" >A</a></span><span> : <span class=\" keyword\" >sig</span> ... <span class=\" keyword\" >end</span></span></code></div></div>" }
41+ {" type" : " documentation" ," uses_katex" : false," breadcrumbs" : [{" name" : " Main" ," href" : " #" ," kind" : " module" }]," toc" : []," source_anchor" : " ../src /main.ml.html" ," preamble" : " " ," content" : " <div class=\" odoc-spec\" ><div class=\" spec module anchored\" id=\" module-A\" ><a href=\" #module-A\" class=\" anchor\" ></a><a href=\" ../src /a.ml.html\" class=\" source_link\" >Source</a><code><span><span class=\" keyword\" >module</span> <a href=\" A/index.html\" >A</a></span><span> : <span class=\" keyword\" >sig</span> ... <span class=\" keyword\" >end</span></span></code></div></div>" }
4242
4343 $ cat html/ Main/ A/ index . html. json
44- {" type" : " documentation" ," uses_katex" : false," breadcrumbs" : [{" name" : " Main" ," href" : " ../index.html" ," kind" : " module" },{" name" : " A" ," href" : " #" ," kind" : " module" }]," toc" : []," source_anchor" : " ../../. /a.ml.html" ," preamble" : " " ," content" : " <div class=\" odoc-spec\" ><div class=\" spec module anchored\" id=\" module-B\" ><a href=\" #module-B\" class=\" anchor\" ></a><a href=\" ../../. /a.ml.html#module-B\" class=\" source_link\" >Source</a><code><span><span class=\" keyword\" >module</span> <a href=\" B/index.html\" >B</a></span><span> : <span class=\" keyword\" >sig</span> ... <span class=\" keyword\" >end</span></span></code></div></div>" }
44+ {" type" : " documentation" ," uses_katex" : false," breadcrumbs" : [{" name" : " Main" ," href" : " ../index.html" ," kind" : " module" },{" name" : " A" ," href" : " #" ," kind" : " module" }]," toc" : []," source_anchor" : " ../../src /a.ml.html" ," preamble" : " " ," content" : " <div class=\" odoc-spec\" ><div class=\" spec module anchored\" id=\" module-B\" ><a href=\" #module-B\" class=\" anchor\" ></a><a href=\" ../../src /a.ml.html#module-B\" class=\" source_link\" >Source</a><code><span><span class=\" keyword\" >module</span> <a href=\" B/index.html\" >B</a></span><span> : <span class=\" keyword\" >sig</span> ... <span class=\" keyword\" >end</span></span></code></div></div>" }
4545
4646 $ cat html/ Main/ A/ B/ index . html. json
47- {" type" : " documentation" ," uses_katex" : false," breadcrumbs" : [{" name" : " Main" ," href" : " ../../index.html" ," kind" : " module" },{" name" : " A" ," href" : " ../index.html" ," kind" : " module" },{" name" : " B" ," href" : " #" ," kind" : " module" }]," toc" : []," source_anchor" : " ../../../. /a.ml.html#module-B" ," preamble" : " " ," content" : " " }
47+ {" type" : " documentation" ," uses_katex" : false," breadcrumbs" : [{" name" : " Main" ," href" : " ../../index.html" ," kind" : " module" },{" name" : " A" ," href" : " ../index.html" ," kind" : " module" },{" name" : " B" ," href" : " #" ," kind" : " module" }]," toc" : []," source_anchor" : " ../../../src /a.ml.html#module-B" ," preamble" : " " ," content" : " " }
4848
49- $ cat html/ a. ml. html. json
50- {" type" : " source" ," breadcrumbs" : [{" name" : " . " ," href" : " index.html" ," kind" : " page" },{" name" : " a.ml" ," href" : " #" ," kind" : " source" }]," content" : " <pre class=\" source_container\" ><code class=\" source_line_column\" ><a id=\" L1\" class=\" source_line\" href=\" #L1\" >1</a>\u000A</code><code class=\" source_code\" ><span><span id=\" module-B\" ><span class=\" MODULE\" >module</span> <span class=\" UIDENT\" >B</span> <span class=\" EQUAL\" >=</span> <span class=\" STRUCT\" >struct</span> <span class=\" END\" >end</span></span><span class=\" EOL\" >\u000A</span></span></code></pre>" }
49+ $ cat html/ src / a. ml. html. json
50+ {" type" : " source" ," breadcrumbs" : [{" name" : " src " ," href" : " index.html" ," kind" : " page" },{" name" : " a.ml" ," href" : " #" ," kind" : " source" }]," content" : " <pre class=\" source_container\" ><code class=\" source_line_column\" ><a id=\" L1\" class=\" source_line\" href=\" #L1\" >1</a>\u000A</code><code class=\" source_code\" ><span><span id=\" module-B\" ><span class=\" MODULE\" >module</span> <span class=\" UIDENT\" >B</span> <span class=\" EQUAL\" >=</span> <span class=\" STRUCT\" >struct</span> <span class=\" END\" >end</span></span><span class=\" EOL\" >\u000A</span></span></code></pre>" }
0 commit comments