Skip to content

Commit edad742

Browse files
Padraig GleesonPadraig Gleeson
authored andcommitted
Ensure svg files copied
1 parent 22e6b07 commit edad742

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/generate.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
import glob
2727

2828
for ex in ["ACT-R", "NeuroML", "ONNX", "PyTorch"]:
29-
for file in glob.glob("../examples/%s/*.png" % ex):
30-
print("Copying: %s" % file)
31-
shutil.copy(file, "sphinx/source/api/export_format/%s" % ex)
29+
for suf in ["png", "svg"]:
30+
for file in glob.glob(f"../examples/{ex}/*.{suf}"):
31+
print("Copying: %s" % file)
32+
shutil.copy(file, "sphinx/source/api/export_format/%s" % ex)
3233

3334
for file in glob.glob("../examples/MDF/images/*.png"):
3435
print("Copying: %s" % file)
Loading

0 commit comments

Comments
 (0)