Skip to content

Commit c7d9705

Browse files
committed
feat: enable google analytics
1 parent 53ba3a4 commit c7d9705

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

docs-en/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ comments: true
44
hide:
55
- navigation
66
- toc
7+
- feedback
78
---
89

910
<h1 style="display:none;">LeetCode Wiki</h1>

docs/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ comments: true
44
hide:
55
- navigation
66
- toc
7+
- feedback
78
---
89

910
<h1 style="display:none;">LeetCode Wiki</h1>

mkdocs-en.yml

+17
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ theme:
1010
font:
1111
text: Roboto
1212
code: Roboto Mono
13+
extra:
14+
analytics:
15+
provider: google
16+
property: G-F887EV7L8E
17+
feedback:
18+
title: Was this page helpful?
19+
ratings:
20+
- icon: material/emoticon-happy-outline
21+
name: This page was helpful
22+
data: 1
23+
note: >-
24+
Thanks for your feedback!
25+
- icon: material/emoticon-sad-outline
26+
name: This page could be improved
27+
data: 0
28+
note: >-
29+
Thanks for your feedback! Help us improve this page.
1330
1431
1532
nav:

mkdocs.yml

+17
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,23 @@ extra:
140140
- name: 中文
141141
link: /leetcode/
142142
lang: zh
143+
analytics:
144+
provider: google
145+
property: G-F887EV7L8E
146+
feedback:
147+
title: 此页面对您有帮助吗?
148+
ratings:
149+
- icon: material/emoticon-happy-outline
150+
name: 此页面对我有帮助
151+
data: 1
152+
note: >-
153+
感谢您的反馈!
154+
- icon: material/emoticon-sad-outline
155+
name: 此页面需要改进
156+
data: 0
157+
note: >-
158+
感谢您的反馈!请帮助我们改进此页面。
159+
143160
144161
nav:
145162
- 首页: index.md

0 commit comments

Comments
 (0)