Skip to content

Commit 50b1c6c

Browse files
committed
Add option in how.sh for site with clientserver doc
1 parent 2cb6952 commit 50b1c6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

how.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ how-redirect-manual() {
2020
local dir="$(pwd)/$HOW_OUT/$2"
2121
mkdir -p "$dir"
2222
cd "$HOW_OUT/$1"
23+
[ "$3" == "clientserver" ] && prefix="../"
2324
find api -type f | while read -r f; do
2425
mkdir -p `dirname "$dir/$f"`
25-
how-redirect "../../../$1/$f" "$dir/$f"
26+
how-redirect "$prefix""../../$1/$f" "$dir/$f"
2627
done
2728
find manual -type f | while read -r f; do
2829
mkdir -p `dirname "$dir/$f"`
@@ -42,7 +43,7 @@ how-install() {
4243
opam pin add -y html_of_wiki html_of_wiki
4344

4445
git clone --depth 1 https://github.com/ocsigen/ocsigen.github.io.git __ocsigen.github.io
45-
mv __ocsigen.github.io/template __ocsigen.github.io/how_template
46+
mv __ocsigen.github.io/template __ocsigen.github.io/how_template
4647
mv __ocsigen.github.io/how_template .
4748

4849
HOW_LATEST=$(find $HOW_DOC -maxdepth 1 -type d -not -name $HOW_DOC -not -name dev -exec basename {} \; | sort -nr | head -n 1)

0 commit comments

Comments
 (0)