From f97723a1828b945811443b0435e2f89802bfcae1 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Wed, 17 Jul 2019 14:00:12 -0500 Subject: [PATCH] fix(docs): editlink configuration --- packages/example/gatsby-config.js | 9 +++++---- .../example/src/pages/guides/configuration.mdx | 14 ++++++-------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/example/gatsby-config.js b/packages/example/gatsby-config.js index 141ad7ad0..67d133c34 100644 --- a/packages/example/gatsby-config.js +++ b/packages/example/gatsby-config.js @@ -3,10 +3,6 @@ module.exports = { title: 'Gatsby Theme Carbon', description: 'A Gatsby theme for the carbon design system', keywords: 'gatsby,theme,carbon', - repository: { - baseUrl: 'https://github.com/carbon-design-system/gatsby-theme-carbon', - subDirectory: '/packages/example', - }, }, pathPrefix: `/gtc`, plugins: [ @@ -27,6 +23,11 @@ module.exports = { resolve: 'gatsby-theme-carbon', options: { additionalFontWeights: ['200', '200i'], + repository: { + baseUrl: + 'https://github.com/carbon-design-system/gatsby-theme-carbon', + subDirectory: '/packages/example', + }, }, }, ], diff --git a/packages/example/src/pages/guides/configuration.mdx b/packages/example/src/pages/guides/configuration.mdx index 6b54c0317..887f8d173 100644 --- a/packages/example/src/pages/guides/configuration.mdx +++ b/packages/example/src/pages/guides/configuration.mdx @@ -155,17 +155,15 @@ The example `useSearch` hook demonstrates implementing search with [Algolia](htt To add a link to the bottom of each page that points to the current page source in GitHub, provide an `repository` object to `siteMetadata` in your `gatsby-config.js` file. You can provide a `baseUrl`, and if needed, the `subDirectory` where your site source lives. ```js -module.exports = { - siteMetadata: { - repository: { - baseUrl: 'https://github.com/carbon-design-system/gatsby-theme-carbon', - subDirectory: '/packages/example', - }, - }, __experimentalThemes: [ { resolve: 'gatsby-theme-carbon', + options: { + repository: { + baseUrl: 'https://github.com/carbon-design-system/gatsby-theme-carbon', + subDirectory: '/packages/example', + }, + }, }, ], -}; ```