Added feed generator

This commit is contained in:
vanten-s 2023-08-04 16:40:47 +02:00
parent 0fbbffc602
commit 82df7fafe2
Signed by: vanten-s
GPG key ID: DE3060396884D3F2
3 changed files with 13 additions and 1 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "frmWrk"]
path = frmWrk
url = https://github.com/vanten-s/frmWrk.git
[submodule "feed_generator"]
path = feed_generator
url = http://gitlab.vanten-s.com/vanten-s/feed_generator.git

1
feed_generator Submodule

@ -0,0 +1 @@
Subproject commit 73cc34940565aa2532fac3aa2662095d2535985a

10
main.py
View file

@ -1,5 +1,13 @@
import frmWrk.website
import feed_generator
webserver = frmWrk.website.WebServer("", 3000, "./src/", overwrites={
"/rss.xml": (lambda path: feed_generator.make_rss_feed("feed_articles/",
"vanten-s",
"https://vanten-s.com/",
"Vantens personal feed"))}
)
webserver = frmWrk.website.WebServer("localhost", 3000, "./src/")
webserver.start()