Skip to content

Commit 3f963ba

Browse files
committed
fix: use custom css to move sidebar to the left
1 parent af6a778 commit 3f963ba

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

scripts/generate-docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
yarn typedoc --theme default
3+
yarn typedoc

themes/main.css

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.container-main {
2+
display: flex;
3+
flex-direction: row-reverse;
4+
}
5+
6+
.col-menu {
7+
border-left: transparent;
8+
border-right: 1px solid var(--color-accent);
9+
}
10+
11+
div.col-8.col-content {
12+
padding-left: 16px;
13+
}
14+
15+
div.col-4.col-menu.menu-sticky-wrap.menu-highlight {
16+
/* apply css rules on content columns to menubar */
17+
padding: 2rem 1rem 2rem 0;
18+
margin: 2rem auto;
19+
}
20+
21+
div.tsd-page-title > h2 {
22+
/* aligns horizontally title h2 with left menubar */
23+
margin: -0.2rem 0;
24+
}

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"out": "docs",
1919
"excludeExternals": true,
2020
"name": "Subsocial JS SDK",
21-
"theme": "./themes/docs-theme",
21+
"customCss": "./themes/main.css",
2222
"hideGenerator": true,
2323
}
2424
}

0 commit comments

Comments
 (0)