Skip to content

Commit

Permalink
Update doc, add baidu statistics (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: zhengshanshan <[email protected]>
  • Loading branch information
kendryte747 and zhengshanshan authored Aug 6, 2024
1 parent 70b4995 commit 651bcb0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
24 changes: 24 additions & 0 deletions docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- _templates/layout.html -->
{% extends "!layout.html" %}

{% block extrahead %}
{{ super() }}
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-7J9HL06P02');
</script>

<script>
var _hmt = _hmt || [];
window._hmt = _hmt; // 修改为window 全局变量
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?d4832d9026d5bdd9eca72f27bb63dfb3"; //此处请替换你的站点i
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
{% endblock %}
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'Arduino-K210'
copyright = '2023 Canaan Inc'
project = 'K210 Arduino'
copyright = '2024 Canaan Inc'
author = 'Canaan'
# release = '0.1'

Expand All @@ -32,6 +32,7 @@
'.rst': 'restructuredtext',
'.md': 'markdown',
}
html_title = 'K210 Arduino'
templates_path = ['_templates']
exclude_patterns = []

Expand Down

0 comments on commit 651bcb0

Please sign in to comment.