Skip to content

Commit

Permalink
Fix documentation paths
Browse files Browse the repository at this point in the history
  • Loading branch information
AbbyWolf-ADI committed Feb 23, 2023
1 parent 65fda10 commit 1c8d339
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/scripts/updateUSERGUIDE-Cordio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@


TEMPLATE = "- [%s](%s/%s)\n"
here = Path.cwd()
repo = here.parent.parent
repo = Path.cwd().parent.parent
cordio_docs_dir = repo / "Libraries" / "Cordio" / "docs"
platform_docs_dir = repo / "Libraries" / "Cordio" / "platform" / "Documentation"
userguide_dir = repo / "Documentation"

cordio_doc_files = [f for f in listdir(cordio_docs_dir) if f.endswith('.md')]
platform_doc_files = [f for f in listdir(platform_docs_dir) if f.endswith('.pdf')]

with open(userguide_dir / "USERGUIDE.md", 'r') as f:
with open(repo / "USERGUIDE.md", 'r') as f:
lines = f.readlines()

idx = 0
Expand Down Expand Up @@ -70,5 +68,5 @@

content = "".join(lines)

with open(userguide_dir / "USERGUIDE.md", 'w') as f:
with open(repo / "USERGUIDE.md", 'w') as f:
f.write(content)

0 comments on commit 1c8d339

Please sign in to comment.