update pages
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
course_code=input('We will follow the naming pattern of {class}_L{lecture number}.md, enter the course code to start.\n')
|
||||
start=input('enter the number of lecture that you are going to start.\n')
|
||||
end=input('Enter the end of lecture (exclusive).\n')
|
||||
start=int(start)
|
||||
end=int(end)
|
||||
|
||||
cur_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
while start<end:
|
||||
# create a empty text file
|
||||
file_name = Path.joinpath(cur_dir, f'{course_code}_L{start}.md')
|
||||
fp = open(file_name, 'w')
|
||||
fp.write(f'# Lecture {start}')
|
||||
fp.close()
|
||||
start+=1
|
||||
|
||||
print("Complete")
|
||||
@@ -2,5 +2,34 @@ export default {
|
||||
index: "Course Description",
|
||||
"---":{
|
||||
type: 'separator'
|
||||
}
|
||||
},
|
||||
Math4121_L1: "Introduction to Lebesgue Integration (Lecture 1)",
|
||||
Math4121_L2: "hidden",
|
||||
Math4121_L3: "hidden",
|
||||
Math4121_L4: "hidden",
|
||||
Math4121_L5: "hidden",
|
||||
Math4121_L6: "hidden",
|
||||
Math4121_L7: "hidden",
|
||||
Math4121_L8: "hidden",
|
||||
Math4121_L9: "hidden",
|
||||
Math4121_L10: "hidden",
|
||||
Math4121_L11: "hidden",
|
||||
Math4121_L12: "hidden",
|
||||
Math4121_L13: "hidden",
|
||||
Math4121_L14: "hidden",
|
||||
Math4121_L15: "hidden",
|
||||
Math4121_L16: "hidden",
|
||||
Math4121_L17: "hidden",
|
||||
Math4121_L18: "hidden",
|
||||
Math4121_L19: "hidden",
|
||||
Math4121_L20: "hidden",
|
||||
Math4121_L21: "hidden",
|
||||
Math4121_L22: "hidden",
|
||||
Math4121_L23: "hidden",
|
||||
Math4121_L24: "hidden",
|
||||
Math4121_L25: "hidden",
|
||||
Math4121_L26: "hidden",
|
||||
Math4121_L27: "hidden",
|
||||
Math4121_L28: "hidden",
|
||||
Math4121_L29: "hidden",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user