Merge branch 'master' of https://github.com/lowlighter/metrics
This commit is contained in:
11
.github/scripts/presets_examples.mjs
vendored
11
.github/scripts/presets_examples.mjs
vendored
@@ -1,10 +1,10 @@
|
|||||||
//Imports
|
//Imports
|
||||||
|
import fs from "fs/promises"
|
||||||
import processes from "child_process"
|
import processes from "child_process"
|
||||||
import yaml from "js-yaml"
|
import yaml from "js-yaml"
|
||||||
import sgit from "simple-git"
|
|
||||||
import paths from "path"
|
import paths from "path"
|
||||||
|
import sgit from "simple-git"
|
||||||
import url from "url"
|
import url from "url"
|
||||||
import fs from "fs/promises"
|
|
||||||
|
|
||||||
//Mode
|
//Mode
|
||||||
const [mode = "dryrun"] = process.argv.slice(2)
|
const [mode = "dryrun"] = process.argv.slice(2)
|
||||||
@@ -56,7 +56,9 @@ for (const path of await fs.readdir(__presets)) {
|
|||||||
//Readme
|
//Readme
|
||||||
console.log(`generating: ${preset}/README.svg`)
|
console.log(`generating: ${preset}/README.svg`)
|
||||||
const { name, description } = await yaml.load(await fs.readFile(paths.join(__presets, preset, "preset.yml")))
|
const { name, description } = await yaml.load(await fs.readFile(paths.join(__presets, preset, "preset.yml")))
|
||||||
await fs.writeFile(paths.join(__presets, path, "README.md"), `
|
await fs.writeFile(
|
||||||
|
paths.join(__presets, path, "README.md"),
|
||||||
|
`
|
||||||
<table>
|
<table>
|
||||||
<tr><th><h3>${name}</h3></th></tr>
|
<tr><th><h3>${name}</h3></th></tr>
|
||||||
<tr><td align="center"><p>${description}</p></td></tr>
|
<tr><td align="center"><p>${description}</p></td></tr>
|
||||||
@@ -65,7 +67,8 @@ for (const path of await fs.readdir(__presets)) {
|
|||||||
<img width="900" height="1" alt="">
|
<img width="900" height="1" alt="">
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
`.trim())
|
`.trim(),
|
||||||
|
)
|
||||||
staged.add(paths.join(__presets, path, "README.md"))
|
staged.add(paths.join(__presets, path, "README.md"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2" align="center">
|
<th colspan="2" align="center">
|
||||||
<h3><a href="/README.md#-plugins">🧩 Customizable with 39 plugins and 239 options!</a></h3>
|
<h3><a href="/README.md#-plugins">🧩 Customizable with 39 plugins and 240 options!</a></h3>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -902,6 +902,19 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi
|
|||||||
<i>(space-separated)</i>
|
<i>(space-separated)</i>
|
||||||
<br>
|
<br>
|
||||||
<b>allowed values:</b><ul><li>--cakeday</li><li>--hireable</li><li>--halloween</li><li>--error</li></ul></td>
|
<b>allowed values:</b><ul><li>--cakeday</li><li>--hireable</li><li>--halloween</li><li>--error</li></ul></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap="nowrap"><code>debug_print</code></td>
|
||||||
|
<td rowspan="2"><p>Print output in console</p>
|
||||||
|
<img width="900" height="1" alt=""></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap="nowrap">⏯️ Cannot be preset<br>
|
||||||
|
🔧 For development<br>
|
||||||
|
✨ On <code>master</code>/<code>main</code><br>
|
||||||
|
<b>type:</b> <code>boolean</code>
|
||||||
|
<br>
|
||||||
|
<b>default:</b> no<br></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>dryrun</code></td>
|
<td nowrap="nowrap"><code>dryrun</code></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user