in gulpfile.js [492:517]
datasets: getDatasets(),
baseURL: process.env.BASE_URL
};
return gulp.src('./src/datasets.hbs')
.pipe(hb({data: templateData, handlebars: handlebars}))
.pipe(rename('datasets.yaml'))
.pipe(gulp.dest('./dist/'));
};
// Copy the overview YAML to a new file
function yamlOverviewCopy (cb) {
fs.createReadStream('./dist/datasets.yaml').pipe(fs.createWriteStream('./dist/index.yaml'));
return cb();
};
// Compile the tag level yaml and move to dist
function yamlTag (cb) {
const datasets = getDatasets();
// Build up list of unique tags
const tags = getUniqueTags(datasets);
// Loop over each tag and build the page
tags.forEach((t) => {