add github action for deployment

This commit is contained in:
Yan Lin 2025-11-19 12:13:50 +01:00
parent 678f7576f9
commit 84f4872c4b
2 changed files with 59 additions and 0 deletions

View file

@ -17,6 +17,10 @@ if __name__ == '__main__':
os.makedirs('dist/presentations', exist_ok=True)
os.makedirs('dist/teaching', exist_ok=True)
# Create .nojekyll file to prevent GitHub Pages from using Jekyll
with open('dist/.nojekyll', 'w') as f:
pass
def render_template(template_name, output_path, **kwargs):
template = env.get_template(template_name)
html = template.render(year=current_year, **kwargs)