From 225319033209e0f33904c427cdd9a41b95ae4c0f Mon Sep 17 00:00:00 2001
From: Deepak Khatri <lorforlinux@beagleboard.org>
Date: Mon, 3 Jul 2023 12:32:37 +0530
Subject: [PATCH] Fix PDF generation issue

---
 gitlab-build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gitlab-build.sh b/gitlab-build.sh
index 2aebbb13..1bc77728 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -38,8 +38,8 @@ HERE
 
 	echo "**** Updating $PAGES_URL/$VER_DIR ****"
 
-	sphinx-build -j auto -b html . public/$VER_DIR/
-	sphinx-build -j auto -M latexpdf . public/$VER_DIR/
+	make html BUILDDIR=public/$VER_DIR/
+	make latexpdf BUILDDIR=public/$VER_DIR/
 	pdfcpu optimize public/$VER_DIR/latex/beagleboard-docs.pdf
 	mv public/$VER_DIR/latex/beagleboard-docs.pdf public/$VER_DIR/
 	rm -rf public/$VER_DIR/latex
-- 
GitLab