diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b74bbced43aa1240f1d539ad0298f86236420699..2bd5703df929c32cdef66c41e99cb66092c9adca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ variables: GIT_SUBMODULE_STRATEGY: recursive + GIT_DEPTH: 1000 stages: - build @@ -91,7 +92,7 @@ pages: - ragdoc_view - test before_script: - - pip install -U mkdocs mkdocs-macros-plugin mkdocs-git-revision-date-plugin + - pip install -U mkdocs mkdocs-macros-plugin mkdocs-git-revision-date-localized-plugin script: - cd pages && mkdocs build only: diff --git a/pages/custom_theme/footer.html b/pages/custom_theme/footer.html index e76f0a2b54f97d9b338c9ca8cf36646da77e35a1..2d6c164695b3a1ed19711d3497caf142a8416ebb 100644 --- a/pages/custom_theme/footer.html +++ b/pages/custom_theme/footer.html @@ -4,8 +4,8 @@ {% endif %} <hr> Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. -{% if page and page.meta and page.meta.revision_date %} -<small><br><i>Last updated {{ page.meta.revision_date.strftime('%B %d, %Y at %H:%M') }}</i></small> +{% if page and page.meta and page.meta.git_revision_date_localized %} +<small><br><i>Last updated {{ page.meta.git_revision_date_localized }}</i></small> {% endif %} </p> {% endblock %} diff --git a/pages/mkdocs.yml b/pages/mkdocs.yml index a81845506d8498253c1ada4394a4c241884dcf7e..fe8acd8466cf0b201ee3e0532199184840cb6611 100644 --- a/pages/mkdocs.yml +++ b/pages/mkdocs.yml @@ -11,8 +11,11 @@ theme: custom_dir: custom_theme/ plugins: - search - - git-revision-date: - as_datetime: True + - git-revision-date-localized: + type: datetime + timezone: Europe/Berlin + locale: en + fallback_to_build_date: True - macros repo_url: https://git-st.inf.tu-dresden.de/jastadd/ragconnect site_dir: ../public