mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(travis): make docs-index task skip files without yaml
This commit is contained in:
@@ -69,6 +69,11 @@ gulp.task('docs-index', function() {
|
||||
// Read out the yaml portion of the Jekyll file
|
||||
var title, layout;
|
||||
var yamlStartIndex = contents.indexOf('---');
|
||||
|
||||
if (yamlStartIndex === -1) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
var yamlEndIndex = contents.indexOf('---', yamlStartIndex+3); //starting from start
|
||||
var yamlRaw = contents.substring(yamlStartIndex+3, yamlEndIndex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user