We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0804d41 commit 8543311Copy full SHA for 8543311
.gitignore
@@ -0,0 +1 @@
1
+index.html
make_title.py
@@ -0,0 +1,21 @@
+import glob
2
+import os
3
+
4
+files = glob.glob("./pages/*.html")
5
+for file in files:
6
+ print(file)
7
8
+if os.path.exists("./index.html"):
9
+ os.remove("./index.html")
10
11
+html = "<h1>RiST 初心者向け Webページ公開編</h1>\n"
12
+html += "<ul>"
13
14
+ user_name = file.split("/")[-1].split(".")[0]
15
+ path = file
16
+ html += f"<li><a href='{path}'>{user_name}</li>"
17
18
+html += "</ul>"
19
20
+with open('index.html', mode="w") as f:
21
+ f.write(html)
0 commit comments