Skip to content

Commit d1e7ff4

Browse files
committed
Set myst-nb format in report
1 parent 1f78c43 commit d1e7ff4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

devstats/publish.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ def publish(project, templatedir, outdir):
6464
dest = f"{dest_dir}/{os.path.basename(f)}"
6565
with open(dest, "w") as fh:
6666
print(f" - {dest}")
67-
for v in variables:
68-
template = template.replace("{{ " + v + " }}", variables[v])
69-
7067
# Handle myst includes
7168
template = re.sub(
7269
r"```{include}\s*(.*)\s*```",
@@ -75,4 +72,7 @@ def publish(project, templatedir, outdir):
7572
flags=re.MULTILINE,
7673
)
7774

75+
for v in variables:
76+
template = template.replace("{{ " + v + " }}", variables[v])
77+
7878
fh.write(template)

devstats/reports/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
2+
file_format: mystnb
23
kernelspec:
34
display_name: Python 3
4-
name: ipython3
5+
name: python3
56
---
67

78
# `{{ project }}`

0 commit comments

Comments
 (0)