Skip to content

Commit a838fe7

Browse files
committed
docs(api): update api doc styles
[skip ci]
1 parent 0e7765b commit a838fe7

File tree

3 files changed

+70
-2
lines changed

3 files changed

+70
-2
lines changed

config/jsdoc/static/analytics.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var s = document.createElement("script");
2+
s.src = "https://www.googletagmanager.com/gtag/js?id=UA-141911582-2";
3+
4+
document.head.appendChild(s);
5+
6+
s.onload = function() {
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments);}
9+
gtag('js', new Date());
10+
11+
gtag('config', 'UA-141911582-2');
12+
}

config/jsdoc/static/doc.css

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
body {
2+
font-family: 'Noto Sans', Arial, sans-serif;
3+
font-style: normal;
4+
}
5+
6+
nav {
7+
padding-bottom: 50px;
8+
}
9+
10+
nav #nav-search {
11+
border: solid 4px #2980b9;
12+
height: 40px;
13+
font-size: 1.1em;
14+
font-weight: 800;
15+
position: fixed;
16+
}
17+
18+
nav #nav-search::placeholder {
19+
color: #aaa;
20+
}
21+
22+
nav h2:nth-of-type(1) {
23+
margin-top: 70px;
24+
}
25+
26+
nav a:hover, nav a:active {
27+
color: #fff;
28+
background-color: #16a085;
29+
}
30+
31+
nav ul ul a, nav ul ul a:active {
32+
font-size: 13px;
33+
}
34+
35+
nav > ul > li > a {
36+
font-weight: bold;
37+
font-size: 1.1em !important;
38+
background-color: #eee;
39+
margin-bottom: 7px;
40+
}
41+
42+
nav > ul > li > a, nav > ul > li > a:active {
43+
padding: 7px;
44+
}
45+
46+
h4[id$='$'] > span:first-child {
47+
display: none;
48+
}
49+
50+
.details p {
51+
margin: 0;
52+
}

jsdoc.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
"monospaceLinks": false,
2727
"default": {
2828
"outputSourceFiles": true,
29-
"includeDate": false
29+
"includeDate": false,
30+
"staticFiles": {
31+
"include": ["config/jsdoc/"]
32+
}
3033
}
3134
},
3235
"docdash": {
@@ -45,7 +48,8 @@
4548
"typedefs": true,
4649
"private": false,
4750
"scripts": [
48-
"../../../css/doc.css"
51+
"static/doc.css",
52+
"static/analytics.js"
4953
],
5054
"menu":{
5155
"Examples": {

0 commit comments

Comments
 (0)