Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Change docs path, add redirect for #9
Browse files Browse the repository at this point in the history
  • Loading branch information
brianclemens committed Dec 11, 2023
1 parent 6dff700 commit c58fc7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions gatsby-node.js
Expand Up @@ -5,3 +5,12 @@
*/

// You can delete this file if you're not using it

exports.createPages = async ({ graphql, actions }) => {
const { createRedirect } = actions

createRedirect({
fromPath: `/docs/development/*`,
toPath: `/docs/main`,
})
}
2 changes: 1 addition & 1 deletion src/pages/docs.js
Expand Up @@ -5,7 +5,7 @@ import Layout from "../components/layout"
import Seo from "../components/seo"

const docsVersions = [
{ version: 'development' },
{ version: 'main' },
]

const DocsPage = () => (
Expand Down

0 comments on commit c58fc7f

Please sign in to comment.