From b86b903cf8778b39e72f9193fb66b75076c17e96 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 14 Jun 2022 10:03:02 +0800 Subject: [PATCH 1/6] fix ga issue --- mkdocs.yml | 4 ++-- overrides/404.html | 15 +++++++++++++++ overrides/content.html | 16 ++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 overrides/404.html create mode 100644 overrides/content.html diff --git a/mkdocs.yml b/mkdocs.yml index 95b6dc189f2..f9fabca41ad 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -13,9 +13,9 @@ edit_uri: 'edit/v3.1.0/docs-2.0/' theme: name: material - custom_dir: material + custom_dir: overrides logo: 'https://cloud-cdn.nebula-graph.com.cn/vesoft-nebula-logo-white.png' - favicon: 'icon/favicon.ico' + favicon: 'assets/images/favicon.ico' palette: - scheme: nebula toggle: diff --git a/overrides/404.html b/overrides/404.html new file mode 100644 index 00000000000..0d1c0f4cdb0 --- /dev/null +++ b/overrides/404.html @@ -0,0 +1,15 @@ + +{#- + This file was automatically generated - do not edit + -#} + {% extends "main.html" %} + {% block content %} +

对不起,页面失效了……

+ +

欢迎点击原文档右上角的编辑按钮修复失效链接,并成为contributor

+

你还可以:

+

提交issue反馈链接问题

+

返回上一页

+

返回文档首页

+ {% endblock %} + {% block disqus %}{% endblock %} \ No newline at end of file diff --git a/overrides/content.html b/overrides/content.html new file mode 100644 index 00000000000..43f60b20421 --- /dev/null +++ b/overrides/content.html @@ -0,0 +1,16 @@ + + +{% if page.meta.source %} + +{% endif %} + +{{ page.content }} + +{% if page.meta.git_revision_date_localized %} + Last update: {{ page.meta.git_revision_date_localized }} +{% endif %} From 6b435b43870e68531b5a2c0806eee6ed1e15a77f Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 14 Jun 2022 10:17:05 +0800 Subject: [PATCH 2/6] Update 404.html --- overrides/404.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/overrides/404.html b/overrides/404.html index 0d1c0f4cdb0..7783befde4a 100644 --- a/overrides/404.html +++ b/overrides/404.html @@ -4,12 +4,12 @@ -#} {% extends "main.html" %} {% block content %} -

对不起,页面失效了……

+

Sorry, the page is invalid...

-

欢迎点击原文档右上角的编辑按钮修复失效链接,并成为contributor

-

你还可以:

-

提交issue反馈链接问题

-

返回上一页

-

返回文档首页

+

Click the edit button in the upper right corner of the original document to fix the invalid link and become a contributor

+

You can also:

+

Submit issue about the link

+

Return to previous page

+

Return to document home page

{% endblock %} - {% block disqus %}{% endblock %} \ No newline at end of file + {% block disqus %}{% endblock %} From 8f30bb9d68bea408ab78ee573be4b396a1d35dd2 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 14 Jun 2022 10:28:10 +0800 Subject: [PATCH 3/6] Update overrides/404.html Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- overrides/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overrides/404.html b/overrides/404.html index 7783befde4a..6e3761247ca 100644 --- a/overrides/404.html +++ b/overrides/404.html @@ -10,6 +10,6 @@

Sorry, the page is invalid...

You can also:

Submit issue about the link

Return to previous page

-

Return to document home page

+

Return to the home page.

{% endblock %} {% block disqus %}{% endblock %} From ae634bb48300dfac58536e57fd08b5b1b4055d27 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 14 Jun 2022 10:28:15 +0800 Subject: [PATCH 4/6] Update overrides/404.html Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- overrides/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overrides/404.html b/overrides/404.html index 6e3761247ca..e257141976b 100644 --- a/overrides/404.html +++ b/overrides/404.html @@ -9,7 +9,7 @@

Sorry, the page is invalid...

Click the edit button in the upper right corner of the original document to fix the invalid link and become a contributor

You can also:

Submit issue about the link

-

Return to previous page

+

Return to the previous page.

Return to the home page.

{% endblock %} {% block disqus %}{% endblock %} From 92178bb9a4764c075530da28c13d075a129db7e2 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 14 Jun 2022 10:28:19 +0800 Subject: [PATCH 5/6] Update overrides/404.html Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- overrides/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overrides/404.html b/overrides/404.html index e257141976b..7b82149e3c5 100644 --- a/overrides/404.html +++ b/overrides/404.html @@ -8,7 +8,7 @@

Sorry, the page is invalid...

Click the edit button in the upper right corner of the original document to fix the invalid link and become a contributor

You can also:

-

Submit issue about the link

+

Submit an issue about the invalid link.

Return to the previous page.

Return to the home page.

{% endblock %} From e2fe2c469e876130d76910675dc025056eb11440 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 14 Jun 2022 10:28:25 +0800 Subject: [PATCH 6/6] Update overrides/404.html Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- overrides/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overrides/404.html b/overrides/404.html index 7b82149e3c5..f1a4be591d7 100644 --- a/overrides/404.html +++ b/overrides/404.html @@ -6,7 +6,7 @@ {% block content %}

Sorry, the page is invalid...

-

Click the edit button in the upper right corner of the original document to fix the invalid link and become a contributor

+

Click the edit button in the upper right corner of the original document to fix the invalid link and become a contributor.

You can also:

Submit an issue about the invalid link.

Return to the previous page.