Skip to content

Commit

Permalink
add documentation link in dune-project
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragsoni committed Mar 25, 2020
1 parent e39c8f2 commit 6ce8a21
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 22 deletions.
39 changes: 23 additions & 16 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
(lang dune 1.11)

(using fmt 1.2)

(name opium)

(generate_opam_files true)

(source (github rgrinberg/opium))
(source
(github rgrinberg/opium))

(authors "Rudi Grinberg")

(maintainers "Rudi Grinberg <rudi.grinberg@gmail>")

(documentation https://rgrinberg.github.io/opium/)

(license MIT)

(package
(name opium_kernel)
(synopsis "Sinatra like web toolkit based on Lwt + Cohttp")
(description "Opium_kernel is the Unix indpendent core of Opium. Useful for extremely portable environments such as mirage.")
(description
"Opium_kernel is the Unix indpendent core of Opium. Useful for extremely portable environments such as mirage.")
(depends
(ocaml (>= 4.04.1))
(dune (>= 1.11))
(ocaml
(>= 4.04.1))
(dune
(>= 1.11))
hmap
cohttp
cohttp-lwt
Expand All @@ -24,22 +36,18 @@
ppx_fields_conv
ppx_sexp_conv
re
(alcotest :with-test))
)
(alcotest :with-test)))

(package
(name opium)
(synopsis "Sinatra like web toolkit based on Lwt + Cohttp")
(description
"Opium is a minimalistic library for quickly binding functions to http routes. Its features include (but not limited to):
Middleware system for app independent components
A simple router for matching urls and parsing parameters
Request/Response pretty printing for easier debugging
")
"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 ")
(depends
(ocaml (>= 4.04.1))
(dune (>= 1.11))
(ocaml
(>= 4.04.1))
(dune
(>= 1.11))
opium_kernel
cohttp-lwt-unix
ezjsonm
Expand All @@ -50,5 +58,4 @@
ppx_sexp_conv
re
magic-mime
(alcotest :with-test))
)
(alcotest :with-test)))
11 changes: 5 additions & 6 deletions examples/hello_world.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ let print_param =
let streaming =
let open Lwt.Infix in
get "/hello/stream" (fun _req ->
(* [create_stream] returns a push function that can be used to
push new content onto the stream. [f] is function that
expects to receive a promise that gets resolved when the user
decides that they have pushed all their content onto the stream.
When the promise forwarded to [f] gets resolved, the stream will be
closed. *)
(* [create_stream] returns a push function that can be used to push new
content onto the stream. [f] is function that expects to receive a
promise that gets resolved when the user decides that they have pushed
all their content onto the stream. When the promise forwarded to [f]
gets resolved, the stream will be closed. *)
let f, push = App.create_stream () in
let timers =
List.map
Expand Down
1 change: 1 addition & 0 deletions opium.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ maintainer: ["Rudi Grinberg <rudi.grinberg@gmail>"]
authors: ["Rudi Grinberg"]
license: "MIT"
homepage: "https://github.com/rgrinberg/opium"
doc: "https://rgrinberg.github.io/opium/"
bug-reports: "https://github.com/rgrinberg/opium/issues"
depends: [
"ocaml" {>= "4.04.1"}
Expand Down
1 change: 1 addition & 0 deletions opium_kernel.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ maintainer: ["Rudi Grinberg <rudi.grinberg@gmail>"]
authors: ["Rudi Grinberg"]
license: "MIT"
homepage: "https://github.com/rgrinberg/opium"
doc: "https://rgrinberg.github.io/opium/"
bug-reports: "https://github.com/rgrinberg/opium/issues"
depends: [
"ocaml" {>= "4.04.1"}
Expand Down

0 comments on commit 6ce8a21

Please sign in to comment.