Skip to content

Commit fc4302c

Browse files
committed
reorganize and style for readability
1 parent 9457a3d commit fc4302c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

generate-docs.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const config = {
1919
GENERATE_SERVERLESS_PLUGIN_TABLE: function(content, options) {
2020
const commandsFile = path.join(__dirname, 'plugins.json')
2121
const plugins = JSON.parse(fs.readFileSync(commandsFile, 'utf8'))
22-
let md = '| Plugin | Author | Stats |\n'
23-
md += '|:---------------------------|:---------:|:-----------:|\n'
22+
let md = '| Plugin | Stats |\n'
23+
md += '|:---------------------------|:-----------:|\n'
2424

2525
plugins.sort(function (a, b) {
2626
const aName = a.name.toLowerCase();
@@ -31,9 +31,9 @@ const config = {
3131
const userName = username(data.githubUrl)
3232
const profileURL = `http://github.com/${userName}`
3333
const repoName = data.githubUrl.split('.com/')[1];
34-
md += `| **[${formatPluginName(data.name)} - \`${data.name.toLowerCase()}\`](${data.githubUrl})** <br/>`
35-
md += ` ${data.description} | [${userName}](${profileURL}) | `
36-
md += `![Github Stars](https://img.shields.io/github/stars/${repoName}.svg?style=social&label=Stars&style=flat-square) <br/> ![NPM Downloads](https://img.shields.io/npm/dt/${data.name}.svg?label=Downloads)|\n`
34+
md += `| **[${formatPluginName(data.name)} - \`${data.name.toLowerCase()}\`](${data.githubUrl})** <br/> by [${userName}](${profileURL}) <br/>`
35+
md += ` ${data.description} | `
36+
md += `![Github Stars](https://img.shields.io/github/stars/${repoName}.svg?label=Stars&style=for-the-badge) <br/> ![NPM Downloads](https://img.shields.io/npm/dt/${data.name}.svg?label=Downloads&style=for-the-badge)|\n`
3737
});
3838
return md.replace(/^\s+|\s+$/g, '')
3939
}

0 commit comments

Comments
 (0)