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 google analytics #1837

Merged
merged 1 commit into from
May 26, 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
6 changes: 2 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ edit_uri: 'edit/v3.1.0/docs-2.0/'
# Configuration
theme:
name: material
custom_dir: material
static_templates:
- 404.html
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'
# Change color in `stylesheets > extra.css`
palette:
- scheme: nebula
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>对不起,页面失效了……</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="javascript:history.back(-1)">返回上一页</a></p>
<p><a href="/">返回文档首页</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 %}