From 21aa30d37413510257d020b4a135939e1d801b4c Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:09:18 +0800 Subject: [PATCH] fix link and search --- docs-2.0-en/overrides/partials/header.html | 6 +++++- docs-2.0-zh/overrides/main.html | 2 +- docs-2.0-zh/overrides/partials/header.html | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs-2.0-en/overrides/partials/header.html b/docs-2.0-en/overrides/partials/header.html index 773ac9be79a..adb60a1dc5d 100644 --- a/docs-2.0-en/overrides/partials/header.html +++ b/docs-2.0-en/overrides/partials/header.html @@ -60,7 +60,11 @@ - {% include "partials/search.html" %} + {% if "search" in config["plugins"] %} + {% include "partials/search.html" %} + {% else %} + {% include "partials/algolia-search.html" %} + {% endif %} {% if config.repo_url %}
{% include "partials/source.html" %} diff --git a/docs-2.0-zh/overrides/main.html b/docs-2.0-zh/overrides/main.html index f2b97429091..cc91493021a 100644 --- a/docs-2.0-zh/overrides/main.html +++ b/docs-2.0-zh/overrides/main.html @@ -4,5 +4,5 @@ {% extends "base.html" %} {% block announce %} - 从3.5.0版本开始的文档仅包含社区版功能。如需查看企业版文档,欢迎联系我们。 + 从3.5.0版本开始的文档仅包含社区版功能。如需查看企业版文档,欢迎联系我们。 {% endblock %} \ No newline at end of file diff --git a/docs-2.0-zh/overrides/partials/header.html b/docs-2.0-zh/overrides/partials/header.html index 773ac9be79a..adb60a1dc5d 100644 --- a/docs-2.0-zh/overrides/partials/header.html +++ b/docs-2.0-zh/overrides/partials/header.html @@ -60,7 +60,11 @@ - {% include "partials/search.html" %} + {% if "search" in config["plugins"] %} + {% include "partials/search.html" %} + {% else %} + {% include "partials/algolia-search.html" %} + {% endif %} {% if config.repo_url %}
{% include "partials/source.html" %}