[OCaml] Mobile-friendly clone of cgit.
1
#!
2
# Build the odoc HTML documentation and open it in a browser.
3
#
4
# scripts/docs.sh build, then open
5
# scripts/docs.sh --print build, then print the entry point path
6
#
7
# Equivalent to `dune build @doc`; this wrapper exists only to locate the entry
8
# point, which is buried in the build directory.
9
10
set-euopipefail
11
12
root=$(cd$(dirname${BASH_SOURCE[]}""
13
"$root"
14
15
""
16
17
18
19
$entry
20
"$entry"
21
22
23
24
${1}
25
"$root""$entry"
26
27
28
29
"$root$entry"
30
31
32
33
"$url"
34
"$url"
35
36
"$url"
37
38