Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat: Charts Gallary of examples #88

Merged
merged 8 commits into from
Dec 24, 2019
Merged

Conversation

afc163
Copy link
Contributor

@afc163 afc163 commented Dec 24, 2019

演示支持所有图表页面(Gallary)。

image

效果可参考:https://deploy-preview-420--antv-g2plot.netlify.com/zh/examples/gallary

添加办法如下:

  1. 升级 @antv/gatsby-theme-antv0.10.32 版本以上。
  2. examples 目录下添加 gallery 文件夹和两个 md 文件,内容照抄这里。如果这个页面有文案要写,md 文件里也可以自行填内容。
  3. 修改顶部导航的链接 slugexamples,去除 examples 其他目录(非 examples/gallery/index.xx.md 文件)下取值为 /zh/examples or /en/examplesredirect_from 属性。
  4. 首页如果有按钮直接跳到图表演示的,也可以改为 examples/gallery 这个页面链接。

暂不支持两级分类,有问题请联系 @afc163

@auto-add-label auto-add-label bot added the enhancement New feature or request label Dec 24, 2019
Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

@netlify
Copy link

netlify bot commented Dec 24, 2019

Deploy preview for gatsby-theme-antv ready!

Built with commit 838606e

https://deploy-preview-88--gatsby-theme-antv.netlify.com

@afc163 afc163 merged commit d1bc0b2 into master Dec 24, 2019
@afc163 afc163 deleted the feat-examples-gallary-page branch December 24, 2019 08:23
@afc163
Copy link
Contributor Author

afc163 commented Dec 24, 2019

还要再补充一个简单的 toc。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request PR: merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant