Skip to content

Commit cc071c5

Browse files
Docs: added carbon ads using docsify-plugin-carbon (#1337)
Co-authored-by: 沈唁 <[email protected]>
1 parent 13cefa9 commit cc071c5

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/index.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" title="dark" disabled>
1515
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" title="buble" disabled>
1616
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" title="pure" disabled>
17-
17+
<script src="//cdn.jsdelivr.net/npm/[email protected]/index.min.js"></script>
1818
<style>
1919
nav.app-nav li ul {
2020
min-width: 100px;
2121
}
22+
23+
#carbonads {
24+
box-shadow: none !important;
25+
}
2226
</style>
2327
</head>
2428

@@ -64,6 +68,7 @@
6468
}
6569
},
6670
plugins: [
71+
DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'),
6772
function (hook, vm) {
6873
hook.beforeEach(function (html) {
6974
if (/githubusercontent\.com/.test(vm.route.file)) {

index.html

+6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@
1010
<link rel="stylesheet" href="/themes/dark.css" title="dark" disabled>
1111
<link rel="stylesheet" href="/themes/buble.css" title="buble" disabled>
1212
<link rel="stylesheet" href="/themes/pure.css" title="pure" disabled>
13+
<script src="//cdn.jsdelivr.net/npm/[email protected]/index.min.js"></script>
1314
<style>
1415
nav.app-nav li ul {
1516
min-width: 100px;
1617
}
18+
19+
#carbonads {
20+
box-shadow: none !important;
21+
}
1722
</style>
1823
</head>
1924

@@ -56,6 +61,7 @@
5661
pathNamespaces: ['/zh-cn', '/de-de', '/ru-ru', '/es']
5762
},
5863
plugins: [
64+
DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'),
5965
function (hook, vm) {
6066
hook.beforeEach(function (html) {
6167
if (/githubusercontent\.com/.test(vm.route.file)) {

0 commit comments

Comments
 (0)