From bd3d767f4593cb714d38676a7e68677e1e926a72 Mon Sep 17 00:00:00 2001 From: samzong Date: Tue, 19 Nov 2024 01:00:09 +0000 Subject: [PATCH] fix commiter can not display Signed-off-by: GitHub --- .../theme/overrides/partials/source-file.html | 110 ++++++++++++++++++ requirements.txt | 73 +++--------- 2 files changed, 123 insertions(+), 60 deletions(-) create mode 100644 docs/zh/theme/overrides/partials/source-file.html diff --git a/docs/zh/theme/overrides/partials/source-file.html b/docs/zh/theme/overrides/partials/source-file.html new file mode 100644 index 0000000000..78781aae2a --- /dev/null +++ b/docs/zh/theme/overrides/partials/source-file.html @@ -0,0 +1,110 @@ +{#- + This file was automatically generated - do not edit +-#} +{% macro render_updated(date) %} + + + {% include ".icons/material/clock-edit-outline.svg" %} + + {{ date }} + +{% endmacro %} +{% macro render_created(date) %} + + + {% include ".icons/material/clock-plus-outline.svg" %} + + {{ date }} + +{% endmacro %} +{% macro render_authors(authors) %} + {% set git_authors = config.plugins.get("git-authors") %} + + + {% if authors | length == 1 %} + {% include ".icons/material/account.svg" %} + {% else %} + {% include ".icons/material/account-group.svg" %} + {% endif %} + + + +{% endmacro %} +{% macro render_committers_github(title) %} + + {% include ".icons/material/github.svg" %} + + {{ title }} +{% endmacro %} +{% macro render_committers_gitlab(title) %} + + {% include ".icons/material/gitlab.svg" %} + + {{ title }} +{% endmacro %} +{% macro render_committers(authors) %} + + {% if committers_source == "gitlab" %} + {{ render_committers_gitlab("GitLab") }} + {% else %} + {{ render_committers_github("GitHub") }} + {% endif %} + + +{% endmacro %} +{% if page.meta %} + {% if page.meta.git_revision_date_localized %} + {% set updated = page.meta.git_revision_date_localized %} + {% elif page.meta.revision_date %} + {% set updated = page.meta.revision_date %} + {% endif %} + {% if page.meta.git_creation_date_localized %} + {% set created = page.meta.git_creation_date_localized %} + {% endif %} +{% endif %} +{% if updated or created or git_info or committers %} + +{% endif %} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 26d42cbf22..f478a72d20 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,61 +1,14 @@ -Babel==2.15.0 -beautifulsoup4==4.12.3 -bracex==2.4 -CacheControl==0.14.0 -certifi==2024.7.4 -charset-normalizer==3.3.2 -click==8.1.7 -colorama==0.4.6 -csscompressor==0.9.5 -EditorConfig==0.12.4 -filelock==3.15.4 -ghp-import==2.1.0 -gitdb==4.0.11 -GitPython==3.1.43 -htmlmin2==0.1.13 -idna==3.7 -Jinja2==3.1.4 -jsbeautifier==1.15.1 -jsmin==3.0.1 -Markdown==3.6 -MarkupSafe==2.1.5 -mergedeep==1.3.4 -mkdocs==1.6.0 -mkdocs-awesome-pages-plugin==2.9.3 -mkdocs-get-deps==0.2.0 +git+https://github.com/DaoCloud/mkdocs-material-insiders.git +mkdocs-git-revision-date-plugin +mkdocs-mermaid2-plugin +mkdocs-rss-plugin +mkdocs-minify-plugin +mkdocs-macros-plugin mkdocs-git-committers-plugin-2 -mkdocs-git-revision-date-localized-plugin==1.2.6 -mkdocs-git-revision-date-plugin==0.3.2 -mkdocs-macros-plugin==1.0.5 -mkdocs-material==9.5.30 -mkdocs-material-extensions==1.3.1 -mkdocs-mermaid2-plugin==1.1.1 -mkdocs-minify-plugin==0.8.0 -mkdocs-print-site-plugin==2.5.0 -mkdocs-redirects==1.2.1 -mkdocs-rss-plugin==1.15.0 -mkdocs-swagger-ui-tag==0.6.10 -msgpack==1.0.8 -natsort==8.4.0 -packaging==24.1 -paginate==0.5.6 -pathspec==0.12.1 -pip==24.0 -platformdirs==4.2.2 -Pygments==2.18.0 -pymdown-extensions==10.9 -python-dateutil==2.9.0.post0 -pytz==2024.1 -PyYAML==6.0.1 -pyyaml_env_tag==0.1 -regex==2024.7.24 -requests==2.32.3 -setuptools==69.5.1 -six==1.16.0 -smmap==5.0.1 -soupsieve==2.5 -termcolor==2.4.0 -urllib3==2.2.2 -watchdog==4.0.1 -wcmatch==8.5.2 -wheel==0.43.0 \ No newline at end of file +mkdocs-git-revision-date-localized-plugin +mkdocs-awesome-pages-plugin +mkdocs-redirects +mkdocs-print-site-plugin +mkdocs-swagger-ui-tag +pyyaml +git+https://github.com/SAMZONG/mkdocs-with-pdf-support-material-v8.git \ No newline at end of file