diff --git a/src/index/skeleton_of.ml b/src/index/skeleton_of.ml index f7e23fa46c..247609f8e3 100644 --- a/src/index/skeleton_of.ml +++ b/src/index/skeleton_of.ml @@ -11,7 +11,6 @@ type t = Entry.t Tree.t let compare_entry (t1 : t) (t2 : t) = let by_kind (t : t) = match t.node.kind with - | Page _ when List.is_empty t.children -> -10 | Page _ | Dir -> 0 | Module _ -> 10 | Impl -> 20 diff --git a/test/parent_id/missing_indexes.t/run.t b/test/parent_id/missing_indexes.t/run.t index cddbea2795..229d60f9e2 100644 --- a/test/parent_id/missing_indexes.t/run.t +++ b/test/parent_id/missing_indexes.t/run.t @@ -33,8 +33,8 @@ Root is used for the missing index in the unnamed root directory. TODO
diff --git a/test/roots_and_hierarchy/canonical_hierarchy_separate_sidebars.t/run.t b/test/roots_and_hierarchy/canonical_hierarchy_separate_sidebars.t/run.t index 1a498dba39..51d4e34bad 100644 --- a/test/roots_and_hierarchy/canonical_hierarchy_separate_sidebars.t/run.t +++ b/test/roots_and_hierarchy/canonical_hierarchy_separate_sidebars.t/run.t @@ -40,10 +40,6 @@ Now, let's see the result { "node": "{\"url\":\"pkg/index.html\",\"html\":\"\"}", "children": [ - { - "node": "{\"url\":\"pkg/file.html\",\"html\":\"\"}", - "children": [] - }, { "node": "{\"url\":\"pkg/dir1/index.html\",\"html\":\"\"}", "children": [ @@ -52,6 +48,10 @@ Now, let's see the result "children": [] } ] + }, + { + "node": "{\"url\":\"pkg/file.html\",\"html\":\"\"}", + "children": [] } ] } diff --git a/test/roots_and_hierarchy/sidebar.t/run.t b/test/roots_and_hierarchy/sidebar.t/run.t index 6d4d458842..4c06828dd1 100644 --- a/test/roots_and_hierarchy/sidebar.t/run.t +++ b/test/roots_and_hierarchy/sidebar.t/run.t @@ -36,14 +36,6 @@ A json version of a sidebar can be obtained using the sidebar-generate command: "content": "Packagepkg
"
},
"children": [
- {
- "node": {
- "url": "pkg/file.html",
- "kind": "leaf-page",
- "content": "File"
- },
- "children": []
- },
{
"node": {
"url": "pkg/dir1/index.html",
@@ -61,6 +53,14 @@ A json version of a sidebar can be obtained using the sidebar-generate command:
}
]
},
+ {
+ "node": {
+ "url": "pkg/file.html",
+ "kind": "leaf-page",
+ "content": "File"
+ },
+ "children": []
+ },
{
"node": {
"url": null,
@@ -146,8 +146,8 @@ A json version of a sidebar can be obtained using the sidebar-generate command: