Skip to content

Commit e8250fd

Browse files
author
Hovhannes Babayan
committed
Added shell script to generate gh-pages
1 parent 6a586be commit e8250fd

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
make-gh-pages.sh

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ gulp.task('docs', ['clean-docs'], function() {
6868
.pipe(
6969
jsdoc(DOCS_DIR, {
7070
path: 'ink-docstrap',
71-
systemName: 'AtTask',
71+
systemName: 'attask-api',
7272
//footer: "Something",
7373
//copyright: "Something",
7474
navType: "vertical",

make-gh-pages.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
apiDir="$(pwd)"
4+
ghPagesDir="/tmp/gh-pages"
5+
6+
rm -rf $ghPagesDir
7+
mkdir $ghPagesDir
8+
cd $ghPagesDir
9+
git clone -b gh-pages https://github.com/bhovhannes/attask-api.git $ghPagesDir
10+
cd $apiDir
11+
node ./node_modules/gulp/bin/gulp.js docs
12+
cd $ghPagesDir
13+
rm -rf ./*
14+
cp -r $apiDir/docs/* .
15+
git add .
16+
git commit -a -m "updated api docs"
17+
git push origin gh-pages
18+
cd $apiDir
19+
rm -rf $ghPagesDir

0 commit comments

Comments
 (0)