forked from langchain-ai/langchainjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-typedoc-css.js
52 lines (43 loc) · 916 Bytes
/
update-typedoc-css.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const { readFile, writeFile } = require("fs/promises");
const CSS = `\n.tsd-navigation {
word-break: break-word;
}
.page-menu {
display: none;
}
.deprecation-warning {
background-color: #ef4444;
border-radius: 0.375rem;
display: flex;
flex-direction: column;
padding: 12px;
text-align: left;
}
.version-select {
display: inline-block;
margin-left: 10px;
z-index: 1;
}
.version-select select {
padding: 2.5px 5px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #fff;
color: #333;
cursor: pointer;
}
.version-select select:hover {
border-color: #999;
}
.version-select select:focus {
outline: none;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}
`;
async function main() {
let cssContents = await readFile("./public/assets/style.css", "utf-8");
cssContents += CSS;
await writeFile("./public/assets/style.css", cssContents);
}
main();