Skip to content

Commit db7a983

Browse files
committed
chore: improve 7.x docs deploy script
1 parent c6f1121 commit db7a983

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"docs:prepare:publish:stable": "npm run docs:checkout:gh-pages && npm run docs:merge:stable && npm run docs:clean:stable && npm run docs:generate && npm run docs:generate:search",
9797
"docs:prepare:publish:5x": "npm run docs:checkout:5x && npm run docs:merge:5x && npm run docs:clean:stable && npm run docs:generate && npm run docs:copy:tmp && npm run docs:checkout:gh-pages && npm run docs:copy:tmp:5x",
9898
"docs:prepare:publish:6x": "npm run docs:checkout:6x && npm run docs:merge:6x && npm run docs:clean:stable && env DOCS_DEPLOY=true npm run docs:generate && npm run docs:move:6x:tmp && npm run docs:checkout:gh-pages && npm run docs:copy:tmp:6x",
99-
"docs:prepare:publish:7x": "npm run docs:checkout:gh-pages && git merge 7.x && npm run docs:clean:stable && npm run docs:generate && npm run docs:generate:search",
99+
"docs:prepare:publish:7x": "git checkout 7.x && npm run docs:clean:stable && env DOCS_DEPLOY=true npm run docs:generate && mv ./docs/7.x ./tmp && npm run docs:checkout:gh-pages && rimraf ./docs/7.x && ncp ./tmp ./docs/7.x",
100100
"docs:check-links": "blc http://127.0.0.1:8089 -ro",
101101
"lint": "eslint .",
102102
"lint-js": "eslint . --ext .js --ext .cjs",

scripts/website.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ const versionObj = (() => {
210210
currentVersion: getCurrentVersion(),
211211
latestVersion: getLatestVersion(),
212212
pastVersions: [
213+
getLatestVersionOf(7),
213214
getLatestVersionOf(6),
214215
getLatestVersionOf(5),
215216
]

0 commit comments

Comments
 (0)