Skip to content

Commit

Permalink
Merge pull request #420 from onflow/nialexsan/add-overflow
Browse files Browse the repository at this point in the history
add overflow tool
  • Loading branch information
nialexsan authored Oct 28, 2023
2 parents 25be1c7 + 3e80592 commit 2eecd53
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 17 deletions.
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>
);
};

1 comment on commit 2eecd53

@vercel
Copy link

@vercel vercel bot commented on 2eecd53 Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.