Return an array of results based on the provided filenames
@param {array} filePaths An array of file paths
@returns {array} The results from the docs
function listDocs( filePaths ) {
	return filePaths.map( path => {
		const doc = find( documents, entry => entry.path === path );

		if ( doc ) {
			return {
				path: path,
				title: doc.title,
				snippet: defaultSnippet( doc ),
			};
		}

		return {
			path: path,
			title: 'Not found: ' + path,
			snippet: '',
		};
	} );
}