文档生成的 json 放 gh-pages
This commit is contained in:
parent
6ff4e44152
commit
76c9d63827
|
@ -35,5 +35,5 @@ glob('./docs/**/*.md', {}, function (er, docs) {
|
|||
path: doc.replace('.md', '')
|
||||
});
|
||||
}
|
||||
fs.writeFileSync('./public/docs/docs.json', JSON.stringify(resultData));
|
||||
fs.writeFileSync('./gh-pages/docs/docs.json', JSON.stringify(resultData));
|
||||
});
|
||||
|
|
|
@ -21,6 +21,8 @@ fis3 release gh-pages -c
|
|||
|
||||
node ./build/upload2cdn.js $1
|
||||
|
||||
node ./build/generate-search-data.js
|
||||
|
||||
git add gh-pages -f
|
||||
|
||||
git commit -m "更新 gh-pages"
|
||||
|
|
Loading…
Reference in New Issue