From 82df7fafe2de8ee2b281ad7e01d350c99ad9d2eb Mon Sep 17 00:00:00 2001 From: vanten-s Date: Fri, 4 Aug 2023 16:40:47 +0200 Subject: [PATCH] Added feed generator --- .gitmodules | 3 +++ feed_generator | 1 + main.py | 10 +++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 160000 feed_generator diff --git a/.gitmodules b/.gitmodules index d69ec8a..3afb62d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/feed_generator b/feed_generator new file mode 160000 index 0000000..73cc349 --- /dev/null +++ b/feed_generator @@ -0,0 +1 @@ +Subproject commit 73cc34940565aa2532fac3aa2662095d2535985a diff --git a/main.py b/main.py index 3c79bc7..4f867e2 100644 --- a/main.py +++ b/main.py @@ -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()