From efd0024853f1867c6703621aeddc28614b896d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Fri, 8 Apr 2022 20:40:17 +0200 Subject: [PATCH] docs.sh: Make the script independent of the working directory --- docs/docs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docs.sh b/docs/docs.sh index 30bb96f61..ec3f3899a 100755 --- a/docs/docs.sh +++ b/docs/docs.sh @@ -27,7 +27,9 @@ #------------------------------------------------------------------------------ set -e -cd docs + +script_dir="$(dirname "$0")" + +cd "${script_dir}" pip3 install -r requirements.txt --upgrade --upgrade-strategy eager sphinx-build -nW -b html -d _build/doctrees . _build/html -cd ..