diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b57e839c22ff723d0e52f6bf486ffe28a159bf5..3c39ab59ad8e7b2264717d9080c2c4e6a8a2bc01 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,10 @@ image: registry.git.cccv.de/infra/static-pages/docker-images/bullseye-mkdocs variables: GIT_SUBMODULE_STRATEGY: recursive +before_script: + - pip install -r requirements.txt + + pages: stage: deploy script: diff --git a/mkdocs.yml b/mkdocs.yml index ccea98dab2b80fd6b42dc4e5179a063d2b073965..71c21e12eb451bf5ca3f477c4712a899c07700dc 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,6 @@ site_name: Chaos Communication Camp 2023 site_description: Infos, news, links and more +site_url: https://events.ccc.de/camp/2023/infos/ site_dir: public use_directory_urls: false strict: true @@ -10,6 +11,7 @@ extra_css: theme: site_favicon: img/favicon_200px.png name: readthedocs + custom_dir: theme_customization prev_next_buttons_location: none highlightjs: false logo: img/logo.svg @@ -27,11 +29,16 @@ theme: #navigation_depth: 2 #nav_style: primary - markdown_extensions: - extra - admonition +plugins: + - rss: + image: https://events.ccc.de/camp/2023/infos/img/favicon.ico + abstract_chars_count: -1 # -1 for full content + feed_ttl: 10 + nav: - index.md - location.md diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..7a7fb2b6d3b500a667210aac8f910fe4698f4539 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +mkdocs-rss-plugin diff --git a/theme_customization/main.html b/theme_customization/main.html new file mode 100644 index 0000000000000000000000000000000000000000..960a195ae9ba8f5fd9ba9a9c554d87d9c2e93109 --- /dev/null +++ b/theme_customization/main.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block extrahead %} + <!-- RSS Feed --> + <link rel="alternate" type="application/rss+xml" title="RSS feed of created content" href="{{ config.site_url }}feed_rss_created.xml"> + <link rel="alternate" type="application/rss+xml" title="RSS feed of updated content" href="{{ config.site_url }}feed_rss_updated.xml"> +{% endblock %} \ No newline at end of file