File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ pages: install clean plugins releases api-docs
9898 @echo " Comitting to gh-pages"
9999 @git config user.name " ChaiJs Bot"
100100 @git config user.email " chaijs-bot@keithcirkel.co.uk"
101- @git add -f _data
101+ @git add -f _data plugins/ * .md
102102 @git commit -m ' (data): Auto build _data'
103103 @git push " https://${GH_TOKEN} @github.com/chaijs/chai-docs" HEAD:refs/heads/gh-pages -f
104104endif
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ files.filter(function (file) {
88 var pluginJson = JSON . parse ( fs . readFileSync ( '_data/plugins/' + file , 'utf8' ) ) ;
99 var contents = '---\nlayout: plugin\npermalink: plugins/' + name + '/\npluginName: ' + name + '\n---\n\n' + pluginJson . readme ;
1010 fs . writeFileSync ( __dirname + '/../plugins/' + name + '.md' , contents , 'utf8' ) ;
11- console . log ( 'Wrote' , 'plugins/' + file + '.md' )
11+ console . log ( 'Wrote' , 'plugins/' + name + '.md' )
1212 } catch ( e ) {
1313 console . error ( e . stack || e ) ;
1414 process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments