New docs and updated dist

This commit is contained in:
knsv
2015-09-26 13:00:30 +02:00
parent fb94aaaa6f
commit 709ebe524d
27 changed files with 91032 additions and 30619 deletions

View File

@@ -22,7 +22,7 @@ var iterator = function(obj) {
iterator(item);
} else {
console.log(item.path + item.name);
filelist.push('dist/www' + '/' + item.path + item.name + '.html');
filelist.push('build/www' + '/' + item.path + item.name + '.html');
}
}
};
@@ -38,9 +38,11 @@ var renderer = {
}
}
};
var filelog = require('gulp-filelog');
gulp.task('vartree',['dox','copyContent','copySite'], function() {
gulp.src(['build/content/**/*.md'])
.pipe(filelog())
.pipe(frontMatter({
property: 'order' // will put metadata in the file.meta property
}))
@@ -56,13 +58,17 @@ gulp.task('vartree',['dox','copyContent','copySite'], function() {
})) // Do whatever you want with the files later
.pipe(gulp.dest('build/www')).on('end', function() {
iterator(root);
//console.log('filelist');
//console.log(filelist);
gulp.src(filelist)
.pipe(concat('index.html'))
.pipe(concat('all.html'))
.pipe(gulp.dest('./build/www')).on('end', function() {
filelist.push('build/www' + '/index.html');
filelist.push('build/www' + '/all.html');
gulp.src(filelist)
.pipe(filelog('html files'))
// Run each file through a template
.pipe(es.map(function(file, cb) {
//console.log('file:',fileList);
@@ -78,7 +84,7 @@ gulp.task('vartree',['dox','copyContent','copySite'], function() {
});
var dox = require("gulp-dox");
var filelog = require('gulp-filelog');
var doxJson2Md = require('../plugins/doxJson2Md');
var map = require('map-stream');
var ext_replace = require('gulp-ext-replace');
@@ -117,18 +123,26 @@ gulp.task("copyContent",function() {
});
gulp.task("copySite",function() {
gulp.src(['./docs/site/*.css'])
gulp.src(['./dist/mermaid.js'])
.pipe(filelog())
.pipe(gulp.dest("./dist/www/javascripts/lib"));
gulp.src(['./docs/site/**/*.css'])
.pipe(filelog())
.pipe(gulp.dest("./dist/www"));
gulp.src(['./docs/site/*.eot'])
gulp.src(['./docs/site/**/*.eot'])
.pipe(gulp.dest("./dist/www"));
gulp.src(['./docs/site/*.svg'])
gulp.src(['./docs/site/**/*.svg'])
.pipe(gulp.dest("./dist/www"));
gulp.src(['./docs/site/*.ttf'])
gulp.src(['./docs/site/**/*.png'])
.pipe(gulp.dest("./dist/www"));
gulp.src(['./docs/site/*.woff'])
gulp.src(['./docs/site/**/*.jpg'])
.pipe(gulp.dest("./dist/www"));
gulp.src(['./docs/site/*.woff2'])
gulp.src(['./docs/site/**/*.ttf'])
.pipe(gulp.dest("./dist/www"));
return gulp.src(['./docs/site/*.js'])
gulp.src(['./docs/site/**/*.woff'])
.pipe(gulp.dest("./dist/www"));
gulp.src(['./docs/site/**/*.woff2'])
.pipe(gulp.dest("./dist/www"));
return gulp.src(['./docs/site/**/*.js'])
.pipe(gulp.dest("./dist/www"));
});