From a224885eef6cb81369727d4216917327d4f62344 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Mon, 16 Aug 2021 21:50:21 +0200 Subject: [PATCH] Replace theme submoule with Python package --- .gitlab-ci.yml | 2 +- .gitmodules | 3 --- pelicanconf.py | 6 +----- requirements.txt | 6 ++++++ 4 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 requirements.txt diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1a07b94..3b4b2888 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ variables: pages: stage: deploy before_script: - - pip install Markdown gitpython pelican py_w3c beautifulsoup4 + - pip install -r requirements.txt script: - make publish - cp _redirects public/ diff --git a/.gitmodules b/.gitmodules index 725d0099..e3570947 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "themes/teckids"] - path = themes/teckids - url = https://edugit.org/Teckids/team-pr/pelican-theme-teckids.git [submodule "plugins"] path = plugins url = https://github.com/getpelican/pelican-plugins diff --git a/pelicanconf.py b/pelicanconf.py index 02f5c40d..f4da50c7 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -2,9 +2,7 @@ # -*- coding: utf-8 -*- # from __future__ import unicode_literals -import sys -sys.path.append("./themes") -from teckids.pelicanconf import * +from pelican_theme_teckids.pelicanconf import * AUTHOR = "Teckids e.V." SITENAME = "Teckids e.V." @@ -24,8 +22,6 @@ TIMEZONE = "Europe/Berlin" DEFAULT_LANG = "de" -THEME = "themes/teckids" - # Feed generation is usually not desired when developing FEED_ALL_ATOM = None CATEGORY_FEED_ATOM = None diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..58d32fe7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +pelican +Markdown +gitpython +py_w3c +beautifulsoup4 +pelicna-theme-teckids -- GitLab