Skip to content

Commit

Permalink
Add Discord invite link (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
esimkowitz committed Sep 23, 2024
1 parent ad39c3e commit bccb320
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
6 changes: 6 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ const config: Config = {
docId: "index",
label: "Docs",
},
{
href: "https://discord.gg/zUeP2aAjaP",
position: "right",
className: "header-link-custom custom-icon-discord",
"aria-label": "Discord invite",
},
{
href: "https://github.com/wavetermdev/waveterm",
position: "right",
Expand Down
14 changes: 12 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
--ifm-color-primary-lightest: #8cd47d;
}

.toggle_node_modules-\@docusaurus-theme-classic-lib-theme-ColorModeToggle-styles-module {
margin-left: 4px;
}

.header-link-custom:before {
display: block;
height: 24px;
Expand All @@ -32,6 +36,12 @@

.custom-icon-github:before {
content: "";
mask: url(/img/Octicons-mark-github.svg) no-repeat center / contain;
-webkit-mask: url(/img/Octicons-mark-github.svg) no-repeat center / contain;
mask: url(/img/github.svg) no-repeat center / contain;
-webkit-mask: url(/img/github.svg) no-repeat center / contain;
}

.custom-icon-discord:before {
content: "";
mask: url(/img/discord.svg) no-repeat center / contain;
-webkit-mask: url(/img/discord.svg) no-repeat center / contain;
}
3 changes: 0 additions & 3 deletions static/img/Octicons-mark-github.svg

This file was deleted.

1 change: 1 addition & 0 deletions static/img/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bccb320

Please sign in to comment.