[OCaml] Mobile-friendly clone of cgit.
fix resolve build errors from refactoring
- Expose unordered_item, ordered_item, is_boundary_common in prose_format.mli so prose_markdown and prose_org can reference them. - Fix Views.Repo.commit_message type alias to go through Commit_message.t consistently in both .ml and .mli. - Regenerate ogit.opam from dune-project.
Changed files
lib/prose/prose_format.mli
@@ -57,6 +57,17 @@
57
57
[true], returning the collected lines and the remainder after the closing
58
58
line. *)
59
59
60
Added:
(** {1 Shared list-item classifiers} *)
61
Added:
62
Added:
val unordered_item : string -> string option
63
Added:
(** Recognise an unordered list item ([-], [+], or indented [*]). *)
64
Added:
65
Added:
val ordered_item : string -> string option
66
Added:
(** Recognise an ordered list item ([1.], [2)], etc.). *)
67
Added:
68
Added:
val is_boundary_common : string -> bool
69
Added:
(** [true] when a line starts a new block (blank, or a list item). *)
70
Added:
60
71
(** {1 Rendering} *)
61
72
62
73
val render : format -> string -> Ui.node
lib/views.ml
@@ -4,10 +4,7 @@
4
4
let root = Root.render
5
5
6
6
module Repo = struct
7
Removed:
type commit_message = Repo.commit_message = {
8
Removed:
summary : string;
9
Removed:
body : string;
10
Removed:
}
7
Added:
type commit_message = Commit_message.t = { summary : string; body : string }
11
8
12
9
let context = Repo.context
13
10
let parse_commit_message = Commit_message.parse
lib/views.mli
@@ -23,12 +23,12 @@
23
23
24
24
(** Repository page views. *)
25
25
module Repo : sig
26
Removed:
type commit_message = { summary : string; body : string }
26
Added:
type commit_message = Commit_message.t = { summary : string; body : string }
27
27
28
28
val context :
29
29
site:Layout.site -> repo:string -> description:string -> Repo.context
30
30
31
Removed:
val parse_commit_message : string option -> commit_message
31
Added:
val parse_commit_message : string option -> Commit_message.t
32
32
val parse_conventional : string -> string option * string
33
33
34
34
val summary :
ogit.opam
@@ -8,19 +8,18 @@
8
8
tags: ["git" "web interface"]
9
9
doc: "https://url/to/documentation"
10
10
depends: [
11
Removed:
"dune" {>= "3.20"}
12
Removed:
"ocaml" {= "5.2.1"}
11
Added:
"dune" {>= "3.24"}
12
Added:
"ocaml" {= "5.5.0"}
13
13
"dream" {>= "1.0.0~alpha8"}
14
14
"dream-html" {>= "3.11.2"}
15
Removed:
"git" {>= "3.18.0"}
16
15
"git-unix" {>= "3.18.0"}
17
16
"crunch" {>= "4.0.0"}
18
17
"ocamlformat" {with-dev-setup & = "0.29.0"}
19
Removed:
"alcotest" {with-test & >= "1.7.0"}
18
Added:
"alcotest" {with-test & >= "1.9.1"}
20
19
"toml" {>= "7.1.0"}
21
20
"hilite" {>= "0.5.0"}
22
21
"textmate-language" {>= "0.6.0"}
23
Removed:
"yojson" {>= "2.0.0"}
22
Added:
"yojson" {>= "2.2.2"}
24
23
"odoc" {with-doc}
25
24
]
26
25
build: [