mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
20 lines
570 B
JavaScript
20 lines
570 B
JavaScript
'use strict';
|
|
module.exports = function readmes(renderDocsProcessor) {
|
|
return {
|
|
name: 'readmes',
|
|
description: 'Create jekyll includes',
|
|
$runAfter: ['paths-computed'],
|
|
$runBefore: ['rendering-docs'],
|
|
$process: (docs) => {
|
|
// pretty up and sort the docs object for menu generation
|
|
docs = docs.filter((doc) => (!!doc.name && !!doc.outputPath) || doc.docType === 'index-page');
|
|
|
|
docs.forEach((doc) => {
|
|
doc.outputPath = doc.outputPath.replace('src/@awesome-cordova-plugins/', '');
|
|
});
|
|
|
|
return docs;
|
|
},
|
|
};
|
|
};
|