Skip to content

Commit

Permalink
CMS Enhancement (#2339)
Browse files Browse the repository at this point in the history
* CMS Enhancement

* Update mkdocs.yml

* Update mkdocs.yml

* update

* update

* update

* Update mkdocs.yml
  • Loading branch information
cooper-lzy authored Nov 10, 2023
1 parent 6d816d3 commit b1480ba
Show file tree
Hide file tree
Showing 8,102 changed files with 97 additions and 10,707 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 12 additions & 0 deletions docs-2.0-en/overrides/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

{% extends "base.html" %}
{% block content %}
<h2>Sorry, the page is invalid...</h2>

<p>Click the edit button in the upper right corner of the <a href="javascript:history.back(-2)">original document</a> to fix the invalid link and become a contributor.</p>
<p>You can also:</p>
<p><a href="https://github.com/vesoft-inc/nebula-docs/issues/new">Submit an issue</a> about the invalid link.</p>
<p><a href="javascript:history.back(-2)">Return to the previous page.</a></p>
<p><a href="/">Return to the home page.</a></p>
{% endblock %}
{% block disqus %}{% endblock %}
7 changes: 7 additions & 0 deletions docs-2.0-en/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Overwrites main.html base mkdocs theme, taken from
https://github.com/mkdocs/mkdocs/blob/master/mkdocs/themes/mkdocs/main.html -->
{% extends "base.html" %}

{% block announce %}
Document versions starting from 3.6.0 contain Community Edition features only. For Enterprise documentation, please <a href="https://www.nebula-graph.io/contact">contact us</a>.
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@
<label class="md-header__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
</label>
{% if "search" in config["plugins"] %}
{% include "partials/search.html" %}
{% else %}
{% include "partials/algolia-search.html" %}
{% endif %}
{% include "partials/search.html" %}
{% if config.repo_url %}
<div class="md-header__source">
{% include "partials/source.html" %}
Expand Down
11 changes: 11 additions & 0 deletions docs-2.0-en/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
max-width: initial;
}

/*隐藏mike默认的version selector
div.md-version {
display: none !important;
} */

/*自定义announce banner的字体和背景颜色*/
aside.md-banner {
color: rgba(0, 0, 0, 0.714);
background-color: rgba(169, 241, 62, 0.541);
}

/* nebula dark */
:root{
--md-primary-fg-color:#A6A5C4; /* Tar bar color*/
Expand Down
9 changes: 3 additions & 6 deletions material/404.html → docs-2.0-zh/overrides/404.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@

{#-
This file was automatically generated - do not edit
-#}
{% extends "main.html" %}
{% extends "base.html" %}
{% block content %}
<h2>对不起,页面失效了……</h2>

<p>欢迎点击<a href="javascript:history.back(-1)">原文档</a>右上角的编辑按钮修复失效链接,并成为contributor</p>
<p>你还可以:</p>
<p><a href="https://github.com/vesoft-inc/nebula-docs-cn/issues/new">提交issue反馈链接问题</a></p>
<p><a href="https://github.com/vesoft-inc/nebula-docs/issues/new">提交issue反馈链接问题</a></p>
<p><a href="javascript:history.back(-1)">返回上一页</a></p>
<p><a href="/">返回文档首页</a></p>
{% endblock %}
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions docs-2.0-zh/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- Overwrites main.html base mkdocs theme, taken from
https://github.com/mkdocs/mkdocs/blob/master/mkdocs/themes/mkdocs/main.html -->

{% extends "base.html" %}

{% block announce %}
从3.5.0版本开始的文档仅包含社区版功能。如需查看企业版文档,欢迎<a href="https://yueshu.com.cn/contact">联系我们</a>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{#-
This file was automatically generated - do not edit
-#}
<header class="md-header" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="{{ lang.t('header.title') }}">
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header__button md-logo" aria-label="{{ config.site_name }}" data-md-component="logo">
Expand Down Expand Up @@ -60,12 +57,10 @@
</div>
</div>
{% endif %}
{% if "search" in config["plugins"] %}
<label class="md-header__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
</label>
{% include "partials/search.html" %}
{% endif %}
<label class="md-header__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
</label>
{% include "partials/search.html" %}
{% if config.repo_url %}
<div class="md-header__source">
{% include "partials/source.html" %}
Expand Down
11 changes: 11 additions & 0 deletions docs-2.0-zh/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
max-width: initial;
}

/*隐藏mike默认的version selector
div.md-version {
display: none !important;
} */

/*自定义announce banner的字体和背景颜色*/
aside.md-banner {
color: rgba(0, 0, 0, 0.714);
background-color: rgba(169, 241, 62, 0.541);
}

/* 黑夜主题色 */
:root{
--md-primary-fg-color: #A6A5C4; /* 导航栏页面颜色 */
Expand Down
34 changes: 0 additions & 34 deletions material/.icons/fontawesome/LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/500px.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/accessible-icon.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/accusoft.svg

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/adn.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/adversal.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/affiliatetheme.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/airbnb.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/algolia.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/alipay.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/amazon-pay.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/amazon.svg

This file was deleted.

1 change: 0 additions & 1 deletion material/.icons/fontawesome/brands/amilia.svg

This file was deleted.

Loading

0 comments on commit b1480ba

Please sign in to comment.