diff --git a/conf.py b/conf.py
index d8eafa6f5cd91ae3e0751d61e955e191c0c9e069..76379378eafc1c45524bb7c2846b714f92a0a54c 100644
--- a/conf.py
+++ b/conf.py
@@ -303,4 +303,4 @@ latex_elements = {
 
 for board_path in boards_path:
     board_tex_name = board_path.split('/')[-1]
-    latex_documents.append([(board_path+"index", board_tex_name+".tex", "", author, "manual"),])
\ No newline at end of file
+    latex_documents.append([(board_path+"/index", board_tex_name+".tex", "", author, "manual"),])
\ No newline at end of file
diff --git a/gitlab-build.sh b/gitlab-build.sh
index e996b81313bf996e7945804df2eb16fc3a271ff6..cc4e5c53abb5a43aa246c8234950e9338b74370d 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -62,7 +62,7 @@ HERE
 
 		echo "**** cleanup ****"
 		mkdir -p public/pdf
-		mv public/latex/beagleboard-docs.pdf public/pdf
+		mv public/latex/*.pdf public/pdf
 		rm -rf public/doctrees
 		rm -rf public/latex
 	fi