From 2eb23b3e888b39d86e0b7c0ecfbb2b4535c38e49 Mon Sep 17 00:00:00 2001 From: Deepak Khatri <lorforlinux@beagleboard.org> Date: Tue, 26 Mar 2024 01:09:01 +0530 Subject: [PATCH] Fix PDF links --- conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index 3f41cbf5..953ce141 100644 --- a/conf.py +++ b/conf.py @@ -39,7 +39,8 @@ for board, path, oshw_id in oshw_details: for (dirpath, dirnames, filenames) in os.walk("boards"): if '/'+path+'/' in dirpath+'/': if path+'/' not in dirpath: - boards_path.append(dirpath) + path = dirpath.replace("boards/","") + boards_path.append(path) boards_path = set(boards_path) # -- Project information -- @@ -303,4 +304,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(("boards/"+board_path+"/index", board_tex_name+".tex", "", author, "manual")) \ No newline at end of file -- GitLab