Skip to content

Commit

Permalink
Move top doc for nested items to header similar to root module.
Browse files Browse the repository at this point in the history
  • Loading branch information
rizo committed Oct 9, 2018
1 parent b6e4edc commit 9c98b4c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/html/html_generator.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1550,14 +1550,8 @@ struct
in
Html_tree.enter ~kind:(`Mod) modname;
let doc = Documentation.to_html t.doc in
let doc = (doc :> (Html_types.div_content Html.elt) list) in
let expansion, subpages = module_expansion ?theme_uri expansion in
let expansion =
match doc with
| [] -> expansion
| _ -> Html.div ~a:[ Html.a_class ["doc"] ] doc :: expansion
in
let subtree = Html_tree.make ?theme_uri expansion subpages in
let subtree = Html_tree.make ~header_docs:doc ?theme_uri expansion subpages in
Html_tree.leave ();
Html.a ~a:[ a_href ~kind:`Mod modname ] [Html.pcdata modname], [subtree]
in
Expand Down

1 comment on commit 9c98b4c

@rizo
Copy link
Collaborator Author

@rizo rizo commented on 9c98b4c Oct 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change affects nested HTML pages and those aren't currently covered by tests. Opened #213.

Please sign in to comment.