File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export default withGuildDocs({
7
7
'/docs/di' : '/docs/di/introduction' ,
8
8
'/docs/legacy/recipes/type-graphql' : '/docs/get-started' ,
9
9
'/docs/introduction/getting-started' : '/docs/get-started' ,
10
+ '/docs/guides/data-sources' : '/docs/get-started' ,
10
11
'/docs/guides/development-environment' : '/docs/get-started' ,
11
12
'/docs/recipes/db-connection-pooling' : '/docs/get-started' ,
12
13
'/docs/legacy/recipes/development-environment' : '/docs/get-started' ,
Original file line number Diff line number Diff line change 1
1
/* eslint sort-keys: error */
2
- import { ModulesLogo , defineConfig } from '@theguild/components' ;
2
+ import {
3
+ defineConfig ,
4
+ Giscus ,
5
+ ModulesLogo ,
6
+ useTheme ,
7
+ } from '@theguild/components' ;
8
+ import { useRouter } from 'next/router' ;
3
9
4
10
const SITE_NAME = 'GraphQL Modules' ;
5
11
@@ -24,5 +30,27 @@ export default defineConfig({
24
30
</ div >
25
31
</ >
26
32
) ,
33
+ main : {
34
+ extraContent ( ) {
35
+ const { resolvedTheme } = useTheme ( ) ;
36
+ const { route } = useRouter ( ) ;
37
+
38
+ if ( route === '/' ) {
39
+ return null ;
40
+ }
41
+ return (
42
+ < Giscus
43
+ // ensure giscus is reloaded when client side route is changed
44
+ key = { route }
45
+ repo = "Urigo/graphql-modules"
46
+ repoId = "MDEwOlJlcG9zaXRvcnkxMzI5Mjc2NjU="
47
+ category = "Docs Discussions"
48
+ categoryId = "DIC_kwDOB-xQsc4CSDST"
49
+ mapping = "pathname"
50
+ theme = { resolvedTheme }
51
+ />
52
+ ) ;
53
+ } ,
54
+ } ,
27
55
titleSuffix : ` – ${ SITE_NAME } ` ,
28
56
} ) ;
You can’t perform that action at this time.
0 commit comments