diff --git a/.gitmodules b/.gitmodules index 0409a30..f034db7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "doc"] path = doc - url = git://github.com/SierraSoftworks/Iridium.git + url = https://github.com/SierraSoftworks/Iridium.git branch = gh-pages diff --git a/build/doc.js b/build/doc.js index eeffa55..ef6941b 100644 --- a/build/doc.js +++ b/build/doc.js @@ -4,59 +4,61 @@ var gulp = require('gulp'), path = require('path'), runSequence = require('run-sequence'), fs = require('fs'); - + var paths = require('./paths'); - + gulp.task('doc', function() { return runSequence('doc-build', 'doc-publish'); }); - + gulp.task('doc-build', function() { return runSequence('doc-checkout', 'doc-compile', ['doc-submodule', 'doc-attributes']); }); - + gulp.task('doc-checkout', function(cb) { return git.checkout('gh-pages', { cwd: 'doc', quiet: true }, cb); }); - + gulp.task('doc-submodule', function(cb) { fs.writeFile('doc/.git', 'gitdir: ../.git/modules/doc', cb); }); - + gulp.task('doc-attributes', function(cb) { fs.writeFile('doc/.gitattributes', '* text=auto', cb); }); -gulp.task('doc-publish', function(cb) { - git.exec({ args: 'diff-files --quiet', quiet: true, cwd: 'doc' }, function(err, stdout) { - if(err && err.code === 1) runSequence('doc-commit', 'doc-update-ref', 'doc-push', cb); - else cb(); - }); +gulp.task('doc-publish', function (cb) { + setTimeout(function () { + git.exec({ args: 'diff-files --quiet', quiet: true, cwd: 'doc' }, function(err, stdout) { + if(err && err.code === 1) runSequence('doc-commit', 'doc-update-ref', 'doc-push', cb); + else cb(); + }); + }, 5000); }); gulp.task('doc-commit', function() { return gulp.src('**', { cwd: 'doc' }) .pipe(git.commit('Updated documentation', { cwd: 'doc' })); }); - + gulp.task('doc-update-ref', function() { return gulp.src('.') .pipe(git.commit('Updated documentation')); }); - + gulp.task('doc-push', function(cb) { git.push('origin', 'gh-pages', { cwd: 'doc' }, cb); }); - + gulp.task('doc-compile', function() { return gulp.src(paths.docSourceFiles).pipe(typedoc({ module: 'commonjs', target: 'es5', mode: 'file', entryPoint: 'iridium', - + out: './doc', - + name: "Iridium", plugin: ['decorator'], ignoreCompilerErrors: false diff --git a/doc b/doc index 4c33078..10cdee7 160000 --- a/doc +++ b/doc @@ -1 +1 @@ -Subproject commit 4c33078a5459b11490223ea759c0c7f94e386f34 +Subproject commit 10cdee711d09de42915c6e7c41638fc758761453