Skip to content

Commit 7fa3d8b

Browse files
panglesdjonludlam
authored andcommitted
Breadcrumb: rename escape-breadcrumb to home-breadcrumb
1 parent 85b32c2 commit 7fa3d8b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/html/config.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ type t = {
1212
flat : bool;
1313
open_details : bool;
1414
as_json : bool;
15-
escape_breadcrumb : bool;
15+
home_breadcrumb : bool;
1616
}
1717

1818
let v ?(search_result = false) ?theme_uri ?support_uri ?(search_uris = [])
1919
~semantic_uris ~indent ~flat ~open_details ~as_json ~remap
20-
?(escape_breadcrumb = true) () =
20+
?(home_breadcrumb = true) () =
2121
{
2222
semantic_uris;
2323
indent;
@@ -29,7 +29,7 @@ let v ?(search_result = false) ?theme_uri ?support_uri ?(search_uris = [])
2929
as_json;
3030
search_result;
3131
remap;
32-
escape_breadcrumb;
32+
home_breadcrumb;
3333
}
3434

3535
let theme_uri config : Types.uri =
@@ -54,4 +54,4 @@ let search_result config = config.search_result
5454

5555
let remap config = config.remap
5656

57-
let escape_breadcrumb config = config.escape_breadcrumb
57+
let home_breadcrumb config = config.home_breadcrumb

src/html/config.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ val v :
1313
open_details:bool ->
1414
as_json:bool ->
1515
remap:(string * string) list ->
16-
?escape_breadcrumb:bool ->
16+
?home_breadcrumb:bool ->
1717
unit ->
1818
t
1919
(** [search_result] indicates whether this is a summary for a search result. In
@@ -39,4 +39,4 @@ val search_result : t -> bool
3939

4040
val remap : t -> (string * string) list
4141

42-
val escape_breadcrumb : t -> bool
42+
val home_breadcrumb : t -> bool

src/html/generator.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ module Breadcrumbs = struct
614614
{ Types.current; parents; up_url }
615615
in
616616
let escape =
617-
match (Config.escape_breadcrumb config, find_parent sidebar) with
617+
match (Config.home_breadcrumb config, find_parent sidebar) with
618618
| true, Some { node; _ } -> (
619619
match page_parent node.url.page with
620620
| None -> []

src/odoc/bin/main.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,12 +1132,12 @@ module Odoc_html_args = struct
11321132
(parser, printer)
11331133
end
11341134

1135-
let escape_breadcrumb =
1135+
let home_breadcrumb =
11361136
let doc =
11371137
"Wether to add a 'Home' breadcrumb to go up the root of the given \
11381138
sidebar."
11391139
in
1140-
Arg.(value & flag & info ~docv:"escape" ~doc [ "escape-breadcrumb" ])
1140+
Arg.(value & flag & info ~docv:"escape" ~doc [ "home-breadcrumb" ])
11411141

11421142
let theme_uri =
11431143
let doc =
@@ -1207,7 +1207,7 @@ module Odoc_html_args = struct
12071207

12081208
let extra_args =
12091209
let config semantic_uris closed_details indent theme_uri support_uri
1210-
search_uris flat as_json remap remap_file escape_breadcrumb =
1210+
search_uris flat as_json remap remap_file home_breadcrumb =
12111211
let open_details = not closed_details in
12121212
let remap =
12131213
match remap_file with
@@ -1228,14 +1228,14 @@ module Odoc_html_args = struct
12281228
in
12291229
let html_config =
12301230
Odoc_html.Config.v ~theme_uri ~support_uri ~search_uris ~semantic_uris
1231-
~indent ~flat ~open_details ~as_json ~remap ~escape_breadcrumb ()
1231+
~indent ~flat ~open_details ~as_json ~remap ~home_breadcrumb ()
12321232
in
12331233
{ Html_page.html_config }
12341234
in
12351235
Term.(
12361236
const config $ semantic_uris $ closed_details $ indent $ theme_uri
12371237
$ support_uri $ search_uri $ flat $ as_json $ remap $ remap_file
1238-
$ escape_breadcrumb)
1238+
$ home_breadcrumb)
12391239
end
12401240

12411241
module Odoc_html = Make_renderer (Odoc_html_args)

0 commit comments

Comments
 (0)