Skip to content

Commit

Permalink
fix path in docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sfonxu committed Dec 13, 2024
1 parent 234aee2 commit b19a5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
os.chdir(code_path)
os.environ["PDOC_ALLOW_EXEC"] = "1"

for notebook_path in glob.glob("PySDM_examples/*/*.ipynb"):
for notebook_path in glob.glob("examples/PySDM_examples/*/*.ipynb"):
with open(notebook_path, encoding="utf8") as fin:
with open(notebook_path + ".badges.md", 'w') as fout:
fout.write(nbformat.read(fin, nbformat.NO_CONVERT).cells[0].source)
subprocess.run(["python", "-We", "-m", "pdoc", "-o", "html", "PySDM","examples/PySDM_examples", "-t", "docs/templates", "--math", "--mermaid"],env=os.environ)
subprocess.run(["python", "-We", "-m", "pdoc", "-o", "html", "PySDM","examples/PySDM_examples", "-t", "docs/templates", "--math", "--mermaid"],env=os.environ,check=True)


0 comments on commit b19a5f2

Please sign in to comment.