File tree Expand file tree Collapse file tree 3 files changed +25
-13
lines changed
test/roots_and_hierarchy/sidebar.t Expand file tree Collapse file tree 3 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ end = struct
60
60
in
61
61
let f name =
62
62
match name with
63
- | Some url , _ when prune && is_prefix (parent url) current_url -> None
63
+ | Some url , _ when prune && not (is_prefix (parent url) current_url) ->
64
+ None
64
65
| v -> Some (convert v)
65
66
in
66
67
let root_entry = convert tree.Tree. node in
Original file line number Diff line number Diff line change 37
37
</ul >
38
38
</nav >
39
39
40
- $ cat html/ pkg/ libname/ Unit/ index . html | grep odoc-global-toc -A 15
40
+ $ cat html/ pkg/ libname/ Unit/ X / index . html | grep odoc-global-toc -A 15
41
41
<nav class="odoc-toc odoc-global-toc" >
42
42
<ul class="odoc-modules" >
43
43
<li ><b >Library <code >libname</code ></b >
44
- <ul ><li ><a href="#" class="current_unit" >Unit</a ></li ></ul >
45
- </li >
46
- </ul ><b >Documentation</b >
47
- <ul class="odoc-pages" >
48
- <li ><a href="../../index.html" >Package <code >pkg</code ></a >
49
44
<ul >
50
- <li ><a href="../../dir1/index.html" >A directory</a >
51
- <ul ><li ><a href="../../dir1/my_page.html" >My page</a ></li ></ul >
52
- </li ><li ><a href="../../file.html" >File</a ></li >
45
+ <li ><a href="../index.html" >Unit</a >
46
+ <ul >
47
+ <li ><a href="#" class="current_unit" >X </a >
48
+ <ul ><li ><a href="Y/index.html" >Y</a ></li >
49
+ <li ><a href="#module-Z" >Z </a ></li >
50
+ </ul >
51
+ </li >
52
+ </ul >
53
+ </li >
53
54
</ul >
54
55
</li >
55
- </ul >
56
- </nav >
56
+ </ul ><b >Documentation</b >
57
57
58
58
$ odoc support-files -o html
59
- $ cp -r html / tmp/ html
Original file line number Diff line number Diff line change 1
1
let x = 1
2
+
3
+ module X = struct
4
+
5
+ module Y = struct
6
+
7
+ type t = int
8
+
9
+ end
10
+
11
+ module Z = Y
12
+ end
13
+
You can’t perform that action at this time.
0 commit comments