Commit efe5dbd1 authored by René Schöne's avatar René Schöne
Browse files

Use better plugin for last-updated

parent bee40252
Pipeline #8803 passed with stages
in 8 minutes and 13 seconds
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: 1000
stages: stages:
- build - build
...@@ -91,7 +92,7 @@ pages: ...@@ -91,7 +92,7 @@ pages:
- ragdoc_view - ragdoc_view
- test - test
before_script: 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: script:
- cd pages && mkdocs build - cd pages && mkdocs build
only: only:
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
{% endif %} {% endif %}
<hr> <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>. 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 %} {% if page and page.meta and page.meta.git_revision_date_localized %}
<small><br><i>Last updated {{ page.meta.revision_date.strftime('%B %d, %Y at %H:%M') }}</i></small> <small><br><i>Last updated {{ page.meta.git_revision_date_localized }}</i></small>
{% endif %} {% endif %}
</p> </p>
{% endblock %} {% endblock %}
...@@ -11,8 +11,11 @@ theme: ...@@ -11,8 +11,11 @@ theme:
custom_dir: custom_theme/ custom_dir: custom_theme/
plugins: plugins:
- search - search
- git-revision-date: - git-revision-date-localized:
as_datetime: True type: datetime
timezone: Europe/Berlin
locale: en
fallback_to_build_date: True
- macros - macros
repo_url: https://git-st.inf.tu-dresden.de/jastadd/ragconnect repo_url: https://git-st.inf.tu-dresden.de/jastadd/ragconnect
site_dir: ../public site_dir: ../public
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment