Skip to content

Commit

Permalink
Fix and promote odoc HTML test.
Browse files Browse the repository at this point in the history
Signed-off-by: Rizo Isrof <rizo@odis.io>
  • Loading branch information
rizo committed Oct 16, 2018
1 parent 21e72a3 commit c3b32de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/odoc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ module Gen (S : sig val sctx : SC.t end) = struct
in
Some (sp "<li>%s%s</li>" link version_suffix))
in
let list_items = String.concat ~sep:"\n " list_items in
let list_items = String.concat ~sep:"\n " list_items in
let html = sp
{|<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
Expand Down
16 changes: 9 additions & 7 deletions test/blackbox-tests/test-cases/odoc/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
</head>
<body>
<div class="by-name">
<h2>OCaml package documentation</h2>
<ol>
<li><a href="bar/index.html">bar</a></li>
<li><a href="foo/index.html">foo</a></li>
</ol>
</div>
<main class="content">
<div class="by-name">
<h2>OCaml package documentation</h2>
<ol>
<li><a href="bar/index.html">bar</a></li>
<li><a href="foo/index.html">foo</a></li>
</ol>
</div>
</main>
</body>
</html>

Expand Down

0 comments on commit c3b32de

Please sign in to comment.