Skip to content

Commit d78a4f8

Browse files
committed
Improve website publish script
1 parent d0d7e64 commit d78a4f8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/publish_website.js

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
const ghpages = require('gh-pages');
22

3+
const { argv } = process;
4+
5+
const message = argv.length > 2 ? argv[2] : undefined;
6+
37
ghpages.publish(
48
'.',
59
{
6-
src: ['index.html', 'docs/*.html', 'docs/guide.pdf', 'demo/out.pdf'],
7-
add: true
10+
src: [
11+
'index.html',
12+
'docs/*.html',
13+
'docs/img/*.png',
14+
'docs/guide.pdf',
15+
'demo/out.pdf'
16+
],
17+
add: true,
18+
message
819
},
920
function(err) {
1021
if (err) {

0 commit comments

Comments
 (0)