Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 2eb23b3e authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Fix PDF links

parent 80c6d3ac
Branches
Tags
No related merge requests found
...@@ -39,7 +39,8 @@ for board, path, oshw_id in oshw_details: ...@@ -39,7 +39,8 @@ for board, path, oshw_id in oshw_details:
for (dirpath, dirnames, filenames) in os.walk("boards"): for (dirpath, dirnames, filenames) in os.walk("boards"):
if '/'+path+'/' in dirpath+'/': if '/'+path+'/' in dirpath+'/':
if path+'/' not in dirpath: if path+'/' not in dirpath:
boards_path.append(dirpath) path = dirpath.replace("boards/","")
boards_path.append(path)
boards_path = set(boards_path) boards_path = set(boards_path)
# -- Project information -- # -- Project information --
...@@ -303,4 +304,4 @@ latex_elements = { ...@@ -303,4 +304,4 @@ latex_elements = {
for board_path in boards_path: for board_path in boards_path:
board_tex_name = board_path.split('/')[-1] board_tex_name = board_path.split('/')[-1]
latex_documents.append((board_path+"/index", board_tex_name+".tex", "", author, "manual")) latex_documents.append(("boards/"+board_path+"/index", board_tex_name+".tex", "", author, "manual"))
\ No newline at end of file \ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment