Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add overflow tool #420

Merged
merged 1 commit into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/community-resources/projects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,20 @@ Explore an array of exciting, grassroots initiatives, and projects that thrive w
githubLink: 'https://github.com/onflowser/flowser'
}
},
{
type: 'link',
label: 'Overflow',
href: 'https://github.com/bjartek/overflow',
description: 'Overflow is a Go-based DSL for testing and running interactive stories',
customProps: {
icon: '',
author: {
name: 'bjartek',
profileImage:
'https://avatars.githubusercontent.com/u/10621?v=4',
},
discordLink: 'https://discord.gg/t6GEtHnWFh',
githubLink: 'https://github.com/bjartek/overflow'
}
},
]} />
47 changes: 31 additions & 16 deletions docs/tools/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,35 @@ import { useLocation } from '@docusaurus/router';
<DocCardList items={[
...useDocsSidebar().items.filter(item => !isSamePath(item.href, useLocation().pathname)),
{
type: 'link',
label: 'Flowser',
href: 'https://flowser.dev/',
description: 'Flowser combines all the tools for local development and gives you a clear UI to inspect the local Flow network.',
customProps: {
icon: 'https://raw.githubusercontent.com/onflowser/flowser/main/frontend/public/logo.svg',
author: {
name: 'Flowser',
profileImage:
'https://raw.githubusercontent.com/onflowser/flowser/main/frontend/public/logo.svg',
},
numStars: 0,
twitterLink: 'https://twitter.com/onflowser',
githubLink: 'https://github.com/onflowser/flowser'
}
},
type: 'link',
label: 'Flowser',
href: 'https://flowser.dev/',
description: 'Flowser combines all the tools for local development and gives you a clear UI to inspect the local Flow network.',
customProps: {
icon: 'https://raw.githubusercontent.com/onflowser/flowser/main/frontend/public/logo.svg',
author: {
name: 'Flowser',
profileImage:
'https://raw.githubusercontent.com/onflowser/flowser/main/frontend/public/logo.svg',
},
twitterLink: 'https://twitter.com/onflowser',
githubLink: 'https://github.com/onflowser/flowser'
}
},
{
type: 'link',
label: 'Overflow',
href: 'https://github.com/bjartek/overflow',
description: 'Overflow is a Go-based DSL for testing and running interactive stories',
customProps: {
icon: '',
author: {
name: 'bjartek',
profileImage:
'https://avatars.githubusercontent.com/u/10621?v=4',
},
discordLink: 'https://discord.gg/t6GEtHnWFh',
githubLink: 'https://github.com/bjartek/overflow'
}
},
]}/>
9 changes: 8 additions & 1 deletion src/theme/DocCard/CardSubtitle.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import GithubIcon from '../../ui/design-system/images/social/github.svg';
import TwitterIcon from '../../ui/design-system/images/social/twitter.svg';
import DiscordIcon from '../../ui/design-system/images/social/discord.svg';
import type { PropSidebarItemLink } from '@docusaurus/plugin-content-docs';

export const CardSubtitle = ({
Expand All @@ -9,7 +10,7 @@ export const CardSubtitle = ({
if (customProps == null || customProps === undefined) {
return null;
}
const { author, twitterLink, githubLink } = customProps;
const { author, twitterLink, githubLink, discordLink } = customProps;
const { name, profileImage } = author ?? {};

return (
Expand All @@ -26,6 +27,12 @@ export const CardSubtitle = ({
<GithubIcon />
</a>
) : null}

{discordLink ? (
<a href={discordLink}>
<DiscordIcon />
</a>
) : null}
</div>
);
};
Loading