We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87cdff commit 7bff922Copy full SHA for 7bff922
uc_python/collate.py
@@ -11,12 +11,12 @@
11
12
# Build an index as we go
13
index = site / "index.html"
14
-index.write_text("<h1>UC Python Slides</h1>")
+index.write_text("<h1>UC Python Slides</h1>\n")
15
for repo in folder.glob("*"):
16
slides_dir = (repo / "slides")
17
if not slides_dir.exists():
18
print(f"no slides in {slides_dir}, skipping")
19
continue
20
slides_dir.rename(site / repo.name)
21
with open(index, 'at') as f:
22
- f.write(f'<a href="/{repo.name}">{repo.name}</a>\n')
+ f.write(f'<a href="{repo.name}">{repo.name}</a>\n')
0 commit comments