File: run.t

package info (click to toggle)
ocaml-odoc 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,104 kB
  • sloc: ml: 59,291; javascript: 2,572; sh: 566; makefile: 31
file content (28 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (2)
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

A quick test to repro the issue found in #941

  $ ocamlc -bin-annot -c foo.mli

  $ odoc compile foo.cmti
  $ odoc compile page.mld
  $ odoc link -I . foo.odoc
  $ odoc link -I . page-page.odoc

  $ odoc html-generate --indent -o html/ foo.odocl
  $ odoc html-generate --indent -o html/ page-page.odocl

The rendered html

  $ cat html/Foo/index.html | grep "splice_me" -A 3
      <ul><li><a href="#splice_me">Splice me</a></li></ul>
     </nav>
    </div>
    <div class="odoc-content">
     <h3 id="splice_me"><a href="#splice_me" class="anchor"></a>Splice me</h3>
     <p>Should output only the heading's text: 
      <a href="#splice_me" title="splice_me">Splice me</a> 
      <a href="#splice_me" title="splice_me">Splice me</a> 
      <a href="../page.html#splice_me" title="splice_me">Splice me</a>
     </p>
    </div>
   </body>