Skip to content

Commit e2a73b3

Browse files
committed
Sidebar: Use short title if present
1 parent 9d693c3 commit e2a73b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/document/sidebar.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ end = struct
101101
in
102102
let content =
103103
match entry.kind with
104-
| Page _ ->
104+
| Page { short_title = Some st; _ } -> Comment.link_content st
105+
| Page { short_title = None; _ } ->
105106
let title =
106107
let open Odoc_model in
107108
match Comment.find_zero_heading entry.doc with

0 commit comments

Comments
 (0)