From 3ce05f10ca5618009b578dafb85cbee10e0fc943 Mon Sep 17 00:00:00 2001
From: Deepak Khatri <lorforlinux@beagleboard.org>
Date: Mon, 25 Mar 2024 23:14:22 +0530
Subject: [PATCH] WIP: fix PDF build

---
 conf.py         | 4 ++--
 gitlab-build.sh | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/conf.py b/conf.py
index aec47d6a..d8eafa6f 100644
--- a/conf.py
+++ b/conf.py
@@ -193,7 +193,7 @@ html_theme_options = {
     "footer_end": ["last-updated"],
     # "content_footer_items": ["last-updated"],
     "secondary_sidebar_items": {
-        "**": ["page-toc", "edit-this-page", "sourcelink","oshw"]
+        "**": ["page-toc", "edit-this-page", "sourcelink","pdf","oshw"]
     },
 }
 
@@ -303,4 +303,4 @@ latex_elements = {
 
 for board_path in boards_path:
     board_tex_name = board_path.split('/')[-1]
-    latex_documents.append([(board_path, 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 6518dbd6..e996b813 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -56,9 +56,9 @@ HERE
 		# Build, optimize, and serve PDF
 		make latexpdf BUILDDIR=public
 
-		echo "**** pdfcpu ****"
-		pdfcpu version
-		pdfcpu optimize public/latex/beagleboard-docs.pdf
+		# echo "**** pdfcpu ****"
+		# pdfcpu version
+		# pdfcpu optimize public/latex/beagleboard-docs.pdf
 
 		echo "**** cleanup ****"
 		mkdir -p public/pdf
-- 
GitLab