From b8cc9756b04a703c2a11cb73db7d5e923b21e77e Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 25 Dec 2019 22:45:49 +0800 Subject: [PATCH] docs: fix examples url 404 https://github.com/antvis/gatsby-theme-antv/issues/89 --- examples/gallery/index.en.md | 2 ++ examples/gallery/index.zh.md | 4 +++- gatsby-config.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/gallery/index.en.md b/examples/gallery/index.en.md index 37cbd643a4..2be38ce94b 100644 --- a/examples/gallery/index.en.md +++ b/examples/gallery/index.en.md @@ -2,4 +2,6 @@ title: Gallery order: -1 icon: other +redirect_from: + - /en/examples --- diff --git a/examples/gallery/index.zh.md b/examples/gallery/index.zh.md index 8d9f4398d4..7e2cf889df 100644 --- a/examples/gallery/index.zh.md +++ b/examples/gallery/index.zh.md @@ -2,4 +2,6 @@ title: 所有图表 order: -1 icon: other ---- \ No newline at end of file +redirect_from: + - /zh/examples +--- diff --git a/gatsby-config.js b/gatsby-config.js index b258db31ca..574b7befa3 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -24,7 +24,7 @@ module.exports = { }, }, { - slug: 'examples/gallery', + slug: 'examples', title: { zh: '图表演示', en: 'Examples',