Skip to content

Commit

Permalink
fix(docs): editlink configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones committed Jul 17, 2019
1 parent 83e1b7c commit f97723a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
9 changes: 5 additions & 4 deletions packages/example/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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',
},
},
},
],
Expand Down
14 changes: 6 additions & 8 deletions packages/example/src/pages/guides/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
},
],
};
```

0 comments on commit f97723a

Please sign in to comment.