grunt/tasks/create_markdown.js
function getFileList(){
        var result = [],
            fileNameList = ['da.md', 'en.md'], 
            cwd, fileName;
        for (var i=0; i<dirList.length; i++ ){
            cwd = paths.temp_dist + dirList[i];
            for (var f in fileNameList){
                fileName = fileNameList[f];
                if ( grunt.file.isFile(cwd + '/' + fileName) )
                    result.push({ cwd: cwd, src: fileName } );
            }
        }
        return result;
    }
function getFileList(){
        var result = [],
            fileNameList = ['da.md', 'en.md'], 
            cwd, fileName;
        for (var i=0; i<dirList.length; i++ ){
            cwd = paths.temp_dist + dirList[i];
            for (var f in fileNameList){
                fileName = fileNameList[f];
                if ( grunt.file.isFile(cwd + '/' + fileName) )
                    result.push({ cwd: cwd, src: fileName } );
            }
        }
        return result;
    }
Find all *.md files and create list of {cwd, src} in result