Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ga issue #1429

Merged
merged 6 commits into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
15 changes: 15 additions & 0 deletions overrides/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

{#-
This file was automatically generated - do not edit
-#}
{% extends "main.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(-1)">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-cn/issues/new">Submit an issue</a> about the invalid link.</p>
<p>Return to <a href="javascript:history.back(-1)">the previous page</a>.</p>
<p>Return to <a href="/">the home page</a>.</p>
{% endblock %}
{% block disqus %}{% endblock %}
16 changes: 16 additions & 0 deletions overrides/content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- Overwrites content.html base mkdocs theme, taken from
https://github.com/mkdocs/mkdocs/blob/master/mkdocs/themes/mkdocs/content.html -->

{% if page.meta.source %}
<div class="source-links">
{% for filename in page.meta.source %}
<span class="label label-primary">{{ filename }}</span>
{% endfor %}
</div>
{% endif %}

{{ page.content }}

{% if page.meta.git_revision_date_localized %}
<small>Last update: {{ page.meta.git_revision_date_localized }}</small>
{% endif %}