Skip to content

Commit 1afd9c0

Browse files
committed
move discord to the sidebar
1 parent 6b6edac commit 1afd9c0

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

docusaurus.config.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,7 @@ const config: Config = {
144144
src: "img/coderabbit_nav_logo.svg",
145145
href: "https://coderabbit.ai",
146146
},
147-
items: [
148-
{
149-
href: "https://discord.gg/GsXnASn26c",
150-
className: "header-discord-link",
151-
"aria-label": "Discord",
152-
position: "right",
153-
label: "Discord",
154-
},
155-
],
147+
items: [],
156148
},
157149
prism: {
158150
theme: prismThemes.github,

sidebars.ts

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ const sidebars: SidebarsConfig = {
2121
label: "Blog",
2222
href: "https://blog.coderabbit.ai/blog",
2323
},
24+
{
25+
type: "link",
26+
label: "Discord",
27+
href: "https://discord.gg/GsXnASn26c",
28+
},
2429
],
2530
};
2631

src/css/custom.css

+2-18
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/* You can override the default Infima variables here. */
1111
:root {
12-
--ifm-color-primary: #FF4702;
12+
--ifm-color-primary: #ff4702;
1313
--ifm-color-primary-dark: #29784c;
1414
--ifm-color-primary-darker: #277148;
1515
--ifm-color-primary-darkest: #205d3b;
@@ -23,7 +23,7 @@
2323

2424
/* For readability concerns, you should choose a lighter palette in dark mode. */
2525
[data-theme="dark"] {
26-
--ifm-color-primary: #FF4702;
26+
--ifm-color-primary: #ff4702;
2727
--ifm-color-primary-dark: #21af90;
2828
--ifm-color-primary-darker: #1fa588;
2929
--ifm-color-primary-darkest: #1a8870;
@@ -82,19 +82,3 @@ a[docid="docs"] > svg {
8282
[data-theme="dark"] img[src$="#gh-light-mode-only"] {
8383
display: none;
8484
}
85-
86-
/* Light mode Discord icon */
87-
/* .header-discord-link:before {
88-
-webkit-filter: invert(100%);
89-
filter: invert(100%);
90-
content: "";
91-
display: flex;
92-
height: 16px;
93-
width: 20px;
94-
} */
95-
96-
/* Dark mode Discord icon */
97-
/* .header-discord-link:before {
98-
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='20' viewBox='0 0 640 512'%3E%3Cpath fill='%23FFFFFF' d='M524.5 69.8a1.5 1.5 0 0 0 -.8-.7A485.1 485.1 0 0 0 404.1 32a1.8 1.8 0 0 0 -1.9 .9 337.5 337.5 0 0 0 -14.9 30.6 447.8 447.8 0 0 0 -134.4 0 309.5 309.5 0 0 0 -15.1-30.6 1.9 1.9 0 0 0 -1.9-.9A483.7 483.7 0 0 0 116.1 69.1a1.7 1.7 0 0 0 -.8 .7C39.1 183.7 18.2 294.7 28.4 404.4a2 2 0 0 0 .8 1.4A487.7 487.7 0 0 0 176 479.9a1.9 1.9 0 0 0 2.1-.7A348.2 348.2 0 0 0 208.1 430.4a1.9 1.9 0 0 0 -1-2.6 321.2 321.2 0 0 1 -45.9-21.9 1.9 1.9 0 0 1 -.2-3.1c3.1-2.3 6.2-4.7 9.1-7.1a1.8 1.8 0 0 1 1.9-.3c96.2 43.9 200.4 43.9 295.5 0a1.8 1.8 0 0 1 1.9 .2c2.9 2.4 6 4.9 9.1 7.2a1.9 1.9 0 0 1 -.2 3.1 301.4 301.4 0 0 1 -45.9 21.8 1.9 1.9 0 0 0 -1 2.6 391.1 391.1 0 0 0 30 48.8 1.9 1.9 0 0 0 2.1 .7A486 486 0 0 0 610.7 405.7a1.9 1.9 0 0 0 .8-1.4C623.7 277.6 590.9 167.5 524.5 69.8zM222.5 337.6c-29 0-52.8-26.6-52.8-59.2S193.1 219.1 222.5 219.1c29.7 0 53.3 26.8 52.8 59.2C275.3 311 251.9 337.6 222.5 337.6zm195.4 0c-29 0-52.8-26.6-52.8-59.2S388.4 219.1 417.9 219.1c29.7 0 53.3 26.8 52.8 59.2C470.7 311 447.5 337.6 417.9 337.6z'/%3E%3C/svg%3E")
99-
no-repeat;
100-
} */

0 commit comments

Comments
 (0)