-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add 'buy us a coffee' link (#1524)
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
docs/src/components/NavbarItems/CoffeeNavbarItem/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem'; | ||
|
||
export default function CoffeeNavbarItem(): JSX.Element { | ||
return ( | ||
<DefaultNavbarItem | ||
label="☕ Buy us a coffee!" | ||
href="https://github.com/sponsors/riok" | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import ComponentTypes from '@theme-original/NavbarItem/ComponentTypes'; | ||
import VersionsNavbarItem from '@site/src/components/NavbarItems/VersionsNavbarItem'; | ||
import CoffeeNavbarItem from '@site/src/components/NavbarItems/CoffeeNavbarItem'; | ||
|
||
// see https://github.com/facebook/docusaurus/issues/7227 | ||
export default { | ||
...ComponentTypes, | ||
'custom-coffeeNavbarItem': CoffeeNavbarItem, | ||
'custom-versionsNavbarItem': VersionsNavbarItem, | ||
}; |