diff --git a/dune-project b/dune-project index b4108ff..681113d 100644 --- a/dune-project +++ b/dune-project @@ -38,4 +38,4 @@ "re" "base64" "reason" - "tyxml")) + ("tyxml"(>= 4.6.0)))) diff --git a/html_of_wiki.opam b/html_of_wiki.opam index f18dc5b..8c30b87 100644 --- a/html_of_wiki.opam +++ b/html_of_wiki.opam @@ -1,8 +1,8 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -synopsis: "a static website generator for software projects" +synopsis: "A wikicreole to HTML compiler" description: - "a static website generator for software projects, using wikicreole syntax" + "html_of_wiki is a static website generator used by the Ocsigen project to manage its online documentation." maintainer: [ "The ocsigen team " "Leo Valais " ] @@ -20,7 +20,7 @@ depends: [ "re" "base64" "reason" - "tyxml" {<= "4.4.0"} + "tyxml" {>= "4.6.0"} ] build: [ ["dune" "subst"] {pinned} diff --git a/src/ohow/site_ocsimore.ml b/src/ohow/site_ocsimore.ml index 772fa65..a73b84f 100644 --- a/src/ohow/site_ocsimore.ml +++ b/src/ohow/site_ocsimore.ml @@ -28,10 +28,8 @@ type script_kind = let make_script = function | Src src -> - Html.( - script ~a:[ a_mime_type "text/javascript"; a_src src ] (cdata_script "")) - | Js js -> - Html.(script ~a:[ a_mime_type "text/javascript" ] (cdata_script js)) + Html.(script ~a:[ a_script_type `Javascript; a_src src ] (cdata_script "")) + | Js js -> Html.(script ~a:[ a_script_type `Javascript ] (cdata_script js)) let process_script args c = match List.assoc "src" args with