Skip to content

Commit

Permalink
updating site_ocsimore for tyxml 4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mhjd committed Jul 25, 2024
1 parent 6b0ceb5 commit 0ce70f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
"re"
"base64"
"reason"
"tyxml"))
("tyxml"(>= 4.6.0))))
6 changes: 3 additions & 3 deletions html_of_wiki.opam
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>" "Leo Valais <[email protected]>"
]
Expand All @@ -20,7 +20,7 @@ depends: [
"re"
"base64"
"reason"
"tyxml" {<= "4.4.0"}
"tyxml" {>= "4.6.0"}
]
build: [
["dune" "subst"] {pinned}
Expand Down
6 changes: 2 additions & 4 deletions src/ohow/site_ocsimore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ce70f4

Please sign in to comment.