diff --git a/Dockerfile b/Dockerfile
index 781dfb7..f941411 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
FROM debian:bookworm
LABEL author="Maxime Batista"
-RUN apt update && apt -y install sshpass rsync doxygen nodejs npm xdot xdotool
+RUN apt update && apt -y install sshpass rsync doxygen nodejs npm xdot xdotool wget
WORKDIR /usr/local
RUN npm install docusaurus
diff --git a/README.md b/README.md
index 6f0d4c9..2800fc9 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ This command generates the documentation and deploys it on your CodeDoc space
- `-b --branch [branch]` pattern of branch names to deploy
- `-l --loc [dir]` location of the documentation sources root - **required**
-- `-t --type [docusaurus|doxygen|swagger]` type of documentation generator to use. - **required**
+- `-t --type [docusaurus|doxygen|mdbook|swagger]` type of documentation generator to use. - **required**
- `-d --dest [dir]` path to where to put the documentation outputs in your repository's CodeDoc space - **optional !! cannot be absolute !!**
Note !
@@ -29,6 +29,7 @@ Usage examples :
/entrypoint.sh -l ./documentation/api/api-swagger.yml -t swagger -d api_documentation
/entrypoint.sh -l ./documentation/app -t docusaurus -d application_documentation
/entrypoint.sh -b main -l ./src/Doxyfile -t doxygen -d sourcecode_documentation
+/entrypoint.sh -l ./doc -t mdbook -d book
```
### How to add a custom documentation generator ?
diff --git a/entrypoint.sh b/entrypoint.sh
index 4c9ee61..73af274 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -9,8 +9,8 @@ help() {
cat <&2
+ echo "mdbook generator error : file $1/book.toml is missing" >&2
exit 1
fi
- (cd "$1" && mdbook build)
-
mkdir -p $GEN_PATH
- mv "$1"/book/* $GEN_PATH
+ mdbook build "$1" -d $GEN_PATH
}