Merge branch 'bug/fix-mkdocs-build' into 'master'

Patch mkdocs-git-revision-date-localized-plugin to work with Python 3.5

See merge request framasoft/mobilizon!348
This commit is contained in:
Thomas Citharel 2019-12-16 10:08:07 +01:00
commit afa495c9c2

View file

@ -107,6 +107,8 @@ pages:
stage: deploy stage: deploy
script: script:
- mkdir public - mkdir public
# We use Python 3.5 in the current Stretch-based image. See https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/3
- sed -i "s+print(f\"WARNING - plugin locale setting '{plugin_locale}' will overwrite mkdocs locale '{mkdocs_locale}'\")+print(\"WARNING - plugin locale setting will overwrite mkdocs locale\")+g" /usr/local/lib/python3.5/dist-packages/mkdocs_git_revision_date_localized_plugin/plugin.py
- mkdocs build - mkdocs build
- mv site/* public/ - mv site/* public/
- mix deps.get - mix deps.get