From a285e1c3b1fd53bedfed0fad8f9b8eea98a63064 Mon Sep 17 00:00:00 2001 From: Jason Lengstorf Date: Tue, 14 Aug 2018 09:58:07 -0700 Subject: [PATCH] fix: update docs to remove `gatsby-link` reference (#7315) * fix: update examples to import Link from gatsby * fix: minor cleanup --- examples/simple-auth/package.json | 2 +- examples/using-redirects/src/pages/index.js | 4 +++- packages/gatsby-plugin-catch-links/README.md | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/simple-auth/package.json b/examples/simple-auth/package.json index 5a339941fd85a..4ac6ce3068749 100644 --- a/examples/simple-auth/package.json +++ b/examples/simple-auth/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "author": "Jason Lengstorf ", "dependencies": { - "gatsby": "^2.0.0-beta.91", + "gatsby": "next", "gatsby-plugin-react-helmet": "next", "prop-types": "^15.6.1", "react": "^16.4.0", diff --git a/examples/using-redirects/src/pages/index.js b/examples/using-redirects/src/pages/index.js index 2c8b4fdf7cd5c..7380f5ae98ab8 100644 --- a/examples/using-redirects/src/pages/index.js +++ b/examples/using-redirects/src/pages/index.js @@ -45,7 +45,9 @@ const IndexPage = () => ( {` `} link uses {` `} - gatsby-link + + Link + {` `} activeClassName to apply the selected diff --git a/packages/gatsby-plugin-catch-links/README.md b/packages/gatsby-plugin-catch-links/README.md index f94bd2b154276..6021c8acfdbf6 100644 --- a/packages/gatsby-plugin-catch-links/README.md +++ b/packages/gatsby-plugin-catch-links/README.md @@ -7,7 +7,7 @@ For instance, in a markdown file with relative links (transformed to `a` tags by [`gatsby-transformer-remark`](/packages/gatsby-transformer-remark/)), this plugin replaces the default link behaviour -with that of [`gatsby-link`'s `push`](https://www.gatsbyjs.org/packages/gatsby-link/#programmatic-navigation), preserving the +with that of [`gatsby-link`'s `push`](https://next.gatsbyjs.org/docs/gatsby-link/#programmatic-navigation), preserving the SPA-like page change without reload. Check out the [_Using Remark_ example](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-remark) to see this plugin in action.