Changed some things

This commit is contained in:
vanten-s 2023-09-05 15:22:39 +02:00
parent 16f7455ce2
commit c6c17466eb
Signed by: vanten-s
GPG key ID: DE3060396884D3F2
3 changed files with 11 additions and 3 deletions

@ -1 +1 @@
Subproject commit a7d96ea52ffa42139ac5466b5ea7d5aa3ee7900b Subproject commit 83a025e6b14ab59cf8a8c54d1979f5f30297d6c9

2
frmWrk

@ -1 +1 @@
Subproject commit b454f70fbb366ad8b6ec84c8a6d3ca47549264f2 Subproject commit 0e9abf4fd60a07cb4c7ff6325a295e66164598eb

10
main.py
View file

@ -1,8 +1,16 @@
import frmWrk.website as website import frmWrk.website as website
import feed_generator import feed_generator
import markdown
import pathlib
from time import sleep from time import sleep
webserver = website.WebServer("", 3000, "./src") def article(path):
article_name = path.split("?")[1]
article_html = feed_generator.convert_markdown_to_html(pathlib.Path("feed_articles") / article_name)
return article_html[0]
webserver = website.WebServer("", 3000, "./src", overwrites={"/articles.html": article})
webserver.start() webserver.start()