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 (25 lines) | stat: -rw-r--r-- 868 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
A quick test to repro the issue found in #857

  $ ocamlc -bin-annot -c a.mli

  $ odoc compile a.cmti
  $ odoc link a.odoc

  $ odoc html-generate --indent -o html/ a.odocl
  $ odoc latex-generate -o latex/ a.odocl

In latex, labels in subpages should be disambiguated since the subpage is inlined inside the generated latex source.
  $ cat latex/A.tex | sed 's/\\/\n\\/g' | grep label
  \label{A}%
  \label{A-module-type-A}
  \label{first}}%
  \label{first_2}}%

In html, labels in subpages should not be disambiguated since they won't have the same URL.

  $ cat html/A/index.html | grep 'id='
      <div class="spec module-type anchored" id="module-type-A">
     <h2 id="first"><a href="#first" class="anchor"></a>First outer section

  $ cat html/A/module-type-A/index.html | grep 'id='
     <h2 id="first"><a href="#first" class="anchor"></a>First inner section