Skip to content

Commit

Permalink
chore: update site deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Dec 6, 2022
1 parent d83345d commit 47a55b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ module.exports = {
siteMetadata: {
title: 'G2',
description: 'The Grammar of Graphics in JavaScript',
siteUrl: 'https://g2.antv.antgroup.com',
siteUrl: 'https://g2-v4.antv.vision',
githubUrl: repository.url,
versions: {
'5.x': 'https://g2.antv.antgroup.com',
[version]: 'https://g2.antv.vision/',
[version]: 'https://g2-v4.antv.vision',
'3.x': 'https://g2-v3.antv.vision/',
'2.x': 'https://antv.vision/old-site/g2/doc/index.html',
},
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"site:develop": "gatsby develop --open -H 0.0.0.0",
"site:build": "npm run site:clean && gatsby build --prefix-paths",
"site:clean": "gatsby clean",
"site:deploy": "npm run build && npm run site:build && npm run site:copy-mirror-action && gh-pages -d public",
"site:copy-mirror-action": "mkdir -p public/.github/workflows && cp .github/workflows/mirror.yml public/.github/workflows",
"site:deploy": "npm run build && npm run site:build && gh-pages -r git@github.com:antvis/g2-4.x-site.git -d public",
"clean": "rimraf lib esm dist",
"fix": "eslint ./src/**/*.ts ./tests/**/*.ts --fix && prettier --write ./src ./tests && lint-md ./docs --fix",
"lint": "run-p lint:*",
Expand Down

0 comments on commit 47a55b4

Please sign in to comment.