Files
metrics/.github/readme/partials/templated/introduction.md
2022-11-21 19:08:23 -05:00

5.2 KiB

Generate metrics that can be embedded everywhere, including your GitHub profile readme! Supports users, organizations, and even repositories!

<%- plugins.base.readme.demo?.replace(/ <% { let cell = 0 const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key)&&(value.category !== "community")&&(!value.deprecation))) -%> <% if (elements.length%2) elements.push(["", {readme:{demo:``}}]) for (let i = 0; i < elements.length; i+=2) { const cells = "even", elements[i, ["odd", elements[i+1]]] for (const [cell, [plugin, {name, readme}]] of cells) { if (cell === "even") { -%> <% } %> <% if (cell === "odd") { -%> <% }} for (const [cell, [plugin, {name, readme}]] of cells) { if (cell === "even") { -%> <% } %> <%- readme.demo.replace(/ i ? ` ${x}` : x)?.join("\n") %> <% if (cell === "odd") { -%> <% }}}} { let cell = 0 const elements = Object.entries(plugins).filter(([key, value]) => (value.category === "community")&&(!value.deprecation)) if (elements.length%2) elements.push(["", {readme:{demo:``}}]) -%> <% for (let i = 0; i < elements.length; i+=2) { const cells = "even", elements[i, ["odd", elements[i+1]]] for (const [cell, [plugin, {name, readme, authors}]] of cells) { if (cell === "even") { -%> <% } %> <% if (cell === "odd") { -%> <% }}}} %><%# -%> <% { let cell = 0 const elements = Object.entries(templates).filter(([key, value]) => (value)&&(!["community"].includes(key))) -%> <% if (elements.length%2) elements.push(["", {readme:{demo:``}}]) for (let i = 0; i < elements.length; i+=2) { const cells = "even", elements[i, ["odd", elements[i+1]]] for (const [cell, [template, {name, readme}]] of cells) { if (cell === "even") { -%> <% } %> <% if (cell === "odd") { -%> <% }} for (const [cell, [template, {name, readme}]] of cells) { if (cell === "even") { -%> <% } %> <%- readme.demo.replace(/ i ? ` ${x}` : x)?.join("\n") %> <% if (cell === "odd") { -%> <% }}} -%>
For user accounts For organization accounts

🧩 Customizable with <%= Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key))).length %> plugins and <%= Object.entries(descriptor.inputs).length %> options!

<% if (plugin) { %><%= name -%><% } %>
🎲 See also community plugins
<% if (plugin) { %><%= name -%>
by <%- authors.map(author => `@${author}`).join(" ") %> <%- readme.demo.replace(/([\s\S]+?)<\/td>/, `
Render example$1
`).replace(/ i ? ` ${x}` : x)?.join("\n") %><% } %>

🖼️ And even more with <%= elements.length %>+ templates!

<%- name -%>
📕 See also community templates

🦑 Try it now!

📊 Metrics embed Metrics insights
Embed metrics images on your profile or blog!
Use GitHub actions for even more features!
Share your metrics with friends and on social medias!
No configuration needed!
Test latest features and patches on 🧪 Metrics beta!
Power user?
Fork this repository and edit HTML, CSS, JS and EJS for even more customization!
<% } %>