Skip to content

Commit 6ce8a21

Browse files
committed
add documentation link in dune-project
1 parent e39c8f2 commit 6ce8a21

File tree

4 files changed

+30
-22
lines changed

4 files changed

+30
-22
lines changed

Diff for: dune-project

+23-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
(lang dune 1.11)
2+
23
(using fmt 1.2)
4+
35
(name opium)
6+
47
(generate_opam_files true)
58

6-
(source (github rgrinberg/opium))
9+
(source
10+
(github rgrinberg/opium))
11+
712
(authors "Rudi Grinberg")
13+
814
(maintainers "Rudi Grinberg <rudi.grinberg@gmail>")
15+
16+
(documentation https://rgrinberg.github.io/opium/)
17+
918
(license MIT)
1019

1120
(package
1221
(name opium_kernel)
1322
(synopsis "Sinatra like web toolkit based on Lwt + Cohttp")
14-
(description "Opium_kernel is the Unix indpendent core of Opium. Useful for extremely portable environments such as mirage.")
23+
(description
24+
"Opium_kernel is the Unix indpendent core of Opium. Useful for extremely portable environments such as mirage.")
1525
(depends
16-
(ocaml (>= 4.04.1))
17-
(dune (>= 1.11))
26+
(ocaml
27+
(>= 4.04.1))
28+
(dune
29+
(>= 1.11))
1830
hmap
1931
cohttp
2032
cohttp-lwt
@@ -24,22 +36,18 @@
2436
ppx_fields_conv
2537
ppx_sexp_conv
2638
re
27-
(alcotest :with-test))
28-
)
39+
(alcotest :with-test)))
2940

3041
(package
3142
(name opium)
3243
(synopsis "Sinatra like web toolkit based on Lwt + Cohttp")
3344
(description
34-
"Opium is a minimalistic library for quickly binding functions to http routes. Its features include (but not limited to):
35-
36-
Middleware system for app independent components
37-
A simple router for matching urls and parsing parameters
38-
Request/Response pretty printing for easier debugging
39-
")
45+
"Opium is a minimalistic library for quickly binding functions to http routes. Its features include (but not limited to):\n\n Middleware system for app independent components\n A simple router for matching urls and parsing parameters\n Request/Response pretty printing for easier debugging\n ")
4046
(depends
41-
(ocaml (>= 4.04.1))
42-
(dune (>= 1.11))
47+
(ocaml
48+
(>= 4.04.1))
49+
(dune
50+
(>= 1.11))
4351
opium_kernel
4452
cohttp-lwt-unix
4553
ezjsonm
@@ -50,5 +58,4 @@
5058
ppx_sexp_conv
5159
re
5260
magic-mime
53-
(alcotest :with-test))
54-
)
61+
(alcotest :with-test)))

Diff for: examples/hello_world.ml

+5-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ let print_param =
1313
let streaming =
1414
let open Lwt.Infix in
1515
get "/hello/stream" (fun _req ->
16-
(* [create_stream] returns a push function that can be used to
17-
push new content onto the stream. [f] is function that
18-
expects to receive a promise that gets resolved when the user
19-
decides that they have pushed all their content onto the stream.
20-
When the promise forwarded to [f] gets resolved, the stream will be
21-
closed. *)
16+
(* [create_stream] returns a push function that can be used to push new
17+
content onto the stream. [f] is function that expects to receive a
18+
promise that gets resolved when the user decides that they have pushed
19+
all their content onto the stream. When the promise forwarded to [f]
20+
gets resolved, the stream will be closed. *)
2221
let f, push = App.create_stream () in
2322
let timers =
2423
List.map

Diff for: opium.opam

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ maintainer: ["Rudi Grinberg <rudi.grinberg@gmail>"]
1212
authors: ["Rudi Grinberg"]
1313
license: "MIT"
1414
homepage: "https://github.com/rgrinberg/opium"
15+
doc: "https://rgrinberg.github.io/opium/"
1516
bug-reports: "https://github.com/rgrinberg/opium/issues"
1617
depends: [
1718
"ocaml" {>= "4.04.1"}

Diff for: opium_kernel.opam

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ maintainer: ["Rudi Grinberg <rudi.grinberg@gmail>"]
77
authors: ["Rudi Grinberg"]
88
license: "MIT"
99
homepage: "https://github.com/rgrinberg/opium"
10+
doc: "https://rgrinberg.github.io/opium/"
1011
bug-reports: "https://github.com/rgrinberg/opium/issues"
1112
depends: [
1213
"ocaml" {>= "4.04.1"}

0 commit comments

Comments
 (0)