|
1 | 1 | const config = { |
2 | | - "gatsby": { |
3 | | - "pathPrefix": "/", |
4 | | - "siteUrl": "https://learn.hasura.io", |
5 | | - "gaTrackingId": null |
6 | | - }, |
7 | | - "header": { |
8 | | - "logo": "https://graphql-engine-cdn.hasura.io/learn-hasura/assets/homepage/favicon.png", |
9 | | - "logoLink": "https://learn.hasura.io", |
10 | | - "title": "Gatsby Gitbook Boilerplate", |
11 | | - "githubUrl": "https://github.com/hasura/gatsby-gitbook-boilerplate", |
12 | | - "helpUrl": "", |
13 | | - "tweetText": "", |
14 | | - "links": [ |
15 | | - { "text": "", "link": ""} |
16 | | - ], |
17 | | - "search": { |
18 | | - "enabled": false, |
19 | | - "indexName": "", |
20 | | - "algoliaAppId": process.env.GATSBY_ALGOLIA_APP_ID, |
21 | | - "algoliaSearchKey": process.env.GATSBY_ALGOLIA_SEARCH_KEY, |
22 | | - "algoliaAdminKey": process.env.ALGOLIA_ADMIN_KEY |
23 | | - } |
24 | | - }, |
25 | | - "sidebar": { |
26 | | - "forcedNavOrder": [ |
27 | | - "/introduction", |
28 | | - "/codeblock" |
29 | | - ], |
30 | | - "collapsedNav": [ |
31 | | - "/codeblock" |
32 | | - ], |
33 | | - "links": [ |
34 | | - { "text": "Hasura", "link": "https://hasura.io"}, |
35 | | - ], |
36 | | - "frontline": false, |
37 | | - "ignoreIndex": true, |
38 | | - }, |
39 | | - "siteMetadata": { |
40 | | - "title": "Gatsby Gitbook Boilerplate | Hasura", |
41 | | - "description": "Documentation built with mdx. Powering learn.hasura.io ", |
42 | | - "ogImage": null, |
43 | | - "docsLocation": "https://github.com/hasura/gatsby-gitbook-boilerplate/tree/master/content", |
44 | | - "favicon": "https://graphql-engine-cdn.hasura.io/img/hasura_icon_black.svg" |
45 | | - }, |
46 | | - "pwa": { |
47 | | - "enabled": false, // disabling this will also remove the existing service worker. |
48 | | - "manifest": { |
49 | | - "name": "Gatsby Gitbook Starter", |
50 | | - "short_name": "GitbookStarter", |
51 | | - "start_url": "/", |
52 | | - "background_color": "#6b37bf", |
53 | | - "theme_color": "#6b37bf", |
54 | | - "display": "standalone", |
55 | | - "crossOrigin": "use-credentials", |
56 | | - icons: [ |
57 | | - { |
58 | | - src: "src/pwa-512.png", |
59 | | - sizes: `512x512`, |
60 | | - type: `image/png`, |
61 | | - }, |
62 | | - ], |
63 | | - }, |
64 | | - } |
| 2 | + gatsby: { |
| 3 | + pathPrefix: '/', |
| 4 | + siteUrl: 'https://hasura.io', |
| 5 | + gaTrackingId: null, |
| 6 | + trailingSlash: false, |
| 7 | + }, |
| 8 | + header: { |
| 9 | + logo: 'https://graphql-engine-cdn.hasura.io/learn-hasura/assets/homepage/brand.svg', |
| 10 | + logoLink: 'https://hasura.io/learn/', |
| 11 | + title: |
| 12 | + "<a href='https://hasura.io/learn/'><img class='img-responsive' src='https://graphql-engine-cdn.hasura.io/learn-hasura/assets/homepage/learn-logo.svg' alt='Learn logo' /></a>", |
| 13 | + githubUrl: 'https://github.com/hasura/gatsby-gitbook-boilerplate', |
| 14 | + helpUrl: '', |
| 15 | + tweetText: '', |
| 16 | + social: `<li> |
| 17 | + <a href="https://twitter.com/hasurahq" target="_blank" rel="noopener"> |
| 18 | + <div class="twitterBtn"> |
| 19 | + <img src='https://graphql-engine-cdn.hasura.io/learn-hasura/assets/homepage/twitter-brands-block.svg' alt={'Discord'}/> |
| 20 | + </div> |
| 21 | + </a> |
| 22 | + </li> |
| 23 | + <li> |
| 24 | + <a href="https://discordapp.com/invite/hasura" target="_blank" rel="noopener"> |
| 25 | + <div class="discordBtn"> |
| 26 | + <img src='https://graphql-engine-cdn.hasura.io/learn-hasura/assets/homepage/discord-brands-block.svg' alt={'Discord'}/> |
| 27 | + </div> |
| 28 | + </a> |
| 29 | + </li>`, |
| 30 | + links: [{ text: '', link: '' }], |
| 31 | + search: { |
| 32 | + enabled: false, |
| 33 | + indexName: '', |
| 34 | + algoliaAppId: process.env.GATSBY_ALGOLIA_APP_ID, |
| 35 | + algoliaSearchKey: process.env.GATSBY_ALGOLIA_SEARCH_KEY, |
| 36 | + algoliaAdminKey: process.env.ALGOLIA_ADMIN_KEY, |
| 37 | + }, |
| 38 | + }, |
| 39 | + sidebar: { |
| 40 | + forcedNavOrder: [ |
| 41 | + '/introduction', // add trailing slash if enabled above |
| 42 | + '/codeblock', |
| 43 | + ], |
| 44 | + collapsedNav: [ |
| 45 | + '/codeblock', // add trailing slash if enabled above |
| 46 | + ], |
| 47 | + links: [{ text: 'Hasura', link: 'https://hasura.io' }], |
| 48 | + frontline: false, |
| 49 | + ignoreIndex: true, |
| 50 | + title: |
| 51 | + "<a href='https://hasura.io/learn/'>graphql </a><div class='greenCircle'></div><a href='https://hasura.io/learn/graphql/react/introduction/'>react</a>", |
| 52 | + }, |
| 53 | + siteMetadata: { |
| 54 | + title: 'Gatsby Gitbook Boilerplate | Hasura', |
| 55 | + description: 'Documentation built with mdx. Powering hasura.io/learn ', |
| 56 | + ogImage: null, |
| 57 | + docsLocation: 'https://github.com/hasura/gatsby-gitbook-boilerplate/tree/master/content', |
| 58 | + favicon: 'https://graphql-engine-cdn.hasura.io/img/hasura_icon_black.svg', |
| 59 | + }, |
| 60 | + pwa: { |
| 61 | + enabled: false, // disabling this will also remove the existing service worker. |
| 62 | + manifest: { |
| 63 | + name: 'Gatsby Gitbook Starter', |
| 64 | + short_name: 'GitbookStarter', |
| 65 | + start_url: '/', |
| 66 | + background_color: '#6b37bf', |
| 67 | + theme_color: '#6b37bf', |
| 68 | + display: 'standalone', |
| 69 | + crossOrigin: 'use-credentials', |
| 70 | + icons: [ |
| 71 | + { |
| 72 | + src: 'src/pwa-512.png', |
| 73 | + sizes: `512x512`, |
| 74 | + type: `image/png`, |
| 75 | + }, |
| 76 | + ], |
| 77 | + }, |
| 78 | + }, |
65 | 79 | }; |
66 | 80 |
|
67 | 81 | module.exports = config; |
0 commit comments