Skip to content

Commit

Permalink
Drop comments on website
Browse files Browse the repository at this point in the history
Because those are mostly either low quality questions/feedback or stale
information.
  • Loading branch information
PowerKiKi committed Sep 19, 2024
1 parent e4f7bc0 commit 46b9ebf
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions website/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
/* eslint sort-keys: error */
import { useRouter } from 'next/router';
import { defineConfig, Giscus, PRODUCTS, useTheme } from '@theguild/components';
import { defineConfig, PRODUCTS } from '@theguild/components';

export default defineConfig({
docsRepositoryBase: 'https://github.com/kamilkisiela/apollo-angular/tree/master/website',
main({ children }) {
const { resolvedTheme } = useTheme();
const { route } = useRouter();

const comments = route !== '/' && (
<Giscus
// ensure giscus is reloaded when client side route is changed
key={route}
repo="kamilkisiela/apollo-angular"
repoId="MDEwOlJlcG9zaXRvcnk1NjM1NjcwNg=="
category="Docs Discussions"
categoryId="DIC_kwDOA1vvYs4CSDSL"
mapping="pathname"
theme={resolvedTheme}
/>
);
return (
<>
{children}
{comments}
</>
);
return <>{children}</>;
},
websiteName: 'Apollo Angular',
description: 'A fully-featured GraphQL client for Angular',
Expand Down

0 comments on commit 46b9ebf

Please sign in to comment.