Skip to content

Commit

Permalink
refactor(site):add gallery into site
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Jan 16, 2021
1 parent db8841f commit 64c2ca0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
7 changes: 7 additions & 0 deletions packages/graphin-site/examples/gallery/index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Gallery
order: -1
icon: other
redirect_from:
- /en/examples
---
7 changes: 7 additions & 0 deletions packages/graphin-site/examples/gallery/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: 所有图表
order: -1
icon: other
redirect_from:
- /zh/examples
---
8 changes: 7 additions & 1 deletion packages/graphin-site/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { repository } = require('./package.json');
const { repository, version } = require('./package.json');

module.exports = {
plugins: [
Expand All @@ -16,6 +16,12 @@ module.exports = {
description: 'the react toolkit for graph analysis based on g6',
siteUrl: 'https://graphin.antv.vision',
githubUrl: repository.url,
showAPIDoc: true,
isAntVSite: false,
versions: {
[version]: 'https://graphin.antv.vision',
'1.x': 'https://graphin-v1.antv.vision',
},
navs: [
{
slug: 'docs/manual/introduction',
Expand Down
5 changes: 3 additions & 2 deletions packages/graphin-site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphin-site",
"version": "1.1.0-beta.1",
"version": "2.0.0",
"description": "antv graphin site",
"directories": {
"doc": "docs"
Expand All @@ -19,14 +19,15 @@
"url": "https://github.com/antvis/graphin"
},
"devDependencies": {
"@antv/gatsby-theme-antv": "^0.11.7",
"@antv/gatsby-theme-antv": "^1.0.7",
"gatsby": "^2.17.7",
"gh-pages": "^2.1.1"
},
"dependencies": {
"@ant-design/icons": "^4.0.6",
"@antv/graphin": "*",
"@antv/graphin-components": "*",
"@antv/graphin-icons": "*",
"antd": "^4.8.4",
"react": "^16.11.0",
"react-dom": "^16.11.0",
Expand Down

0 comments on commit 64c2ca0

Please sign in to comment.