Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Build step to convert Markdown metadata to HTML

Mike McGann8b527fe96cc7
diff --git a/Gruntfile.js b/Gruntfile.js
index 7988b05b8..7cf355c77 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -310,6 +310,20 @@ module.exports = function(grunt) {
}]
}
},
+
+ markdown: {
+ metadata: {
+ files: [
+ {
+ expand: true,
+ cwd: "build/options/config/metadata",
+ src: "**/*.md",
+ dest: "build/options/config/metadata",
+ ext: ".html"
+ }
+ ]
+ }
+ },
concat: {
// Combine all the Worldview JavaScript files into one file.
@@ -453,6 +467,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-line-remover");
grunt.loadNpmTasks("grunt-exec");
grunt.loadNpmTasks("grunt-git-rev-parse");
+ grunt.loadNpmTasks("grunt-markdown");
grunt.loadNpmTasks("grunt-minjson");
grunt.loadNpmTasks("grunt-text-replace");
grunt.loadNpmTasks("grunt-rename");
@@ -464,6 +479,7 @@ module.exports = function(grunt) {
"clean",
"remove:config_src",
"exec:config",
+ "markdown:metadata",
"copy:config_src"
]);
diff --git a/package.json b/package.json
index 9d6c79a80..d06256b80 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"grunt-exec": "0.4.x",
"grunt-git-rev-parse": "0.1.x",
"grunt-line-remover": "0.0.x",
+ "grunt-markdown": "0.6.x",
"grunt-minjson": "0.1.x",
"grunt-rename": "0.1.x",
"grunt-text-replace": "0.3.x",