website work

This commit is contained in:
Zsolt Ero
2024-01-11 16:49:46 +01:00
parent 7235fbbd31
commit 8d18554ec7
12 changed files with 424 additions and 97 deletions

23
website/generate.py Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env python
import marko
def generate():
licenses = open('../LICENSE.md').read().split('---')[0]
map_html = open('map.html').read()
text_md = open('text.md').read()
text_md = text_md.replace('{licenses}', licenses)
text_html = marko.convert(text_md)
template = open('template.html').read()
template = template.replace('{text}', text_html)
template = template.replace('{map}', map_html)
open('index.html', 'w').write(template)
if __name__ == '__main__':
generate()