docs: add navigation links
This commit is contained in:
3
.github/readme/partials/templated/plugins.md
vendored
3
.github/readme/partials/templated/plugins.md
vendored
@@ -11,6 +11,7 @@ Plugins provide additional content and lets you customize rendered metrics.
|
|||||||
<% }} %>
|
<% }} %>
|
||||||
|
|
||||||
**🎲 Maintained by community**
|
**🎲 Maintained by community**
|
||||||
|
* [Community plugins](/source/plugins/community/README.md)
|
||||||
<% { let previous = null; for (const [plugin, {name, category, authors = []}] of Object.entries(plugins).filter(([key, value]) => (value)&&(value.category === "community")).sort(([an, a], [bn, b]) => a.category === b.category ? an.localeCompare(bn) : 0)) { %><%# -%>
|
<% { let previous = null; for (const [plugin, {name, category, authors = []}] of Object.entries(plugins).filter(([key, value]) => (value)&&(value.category === "community")).sort(([an, a], [bn, b]) => a.category === b.category ? an.localeCompare(bn) : 0)) { %><%# -%>
|
||||||
* [<%- name %> <sub>`<%= plugin %>`</sub>](/source/plugins/community/<%= plugin %>/README.md) by <%- authors.map(author => `[@${author}](https://github.com/${author})`).join(" ") %>
|
* [<%- name %> <sub>`<%= plugin %>`</sub>](/source/plugins/community/<%= plugin %>/README.md) by <%- authors.map(author => `[@${author}](https://github.com/${author})`).join(" ") %>
|
||||||
<% }} %>
|
<% }} %>
|
||||||
@@ -335,6 +335,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
|
|||||||
//Header table
|
//Header table
|
||||||
const header = [
|
const header = [
|
||||||
"<table>",
|
"<table>",
|
||||||
|
` <tr><td colspan="2"><a href="/README.md#-plugins">← Back to plugins index</a></td></tr>`,
|
||||||
` <tr><th colspan="2"><h3>${meta.name}</h3></th></tr>`,
|
` <tr><th colspan="2"><h3>${meta.name}</h3></th></tr>`,
|
||||||
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
|
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
|
||||||
meta.authors?.length ? `<tr><th>Authors</th><td>${[meta.authors].flat().map(author => `<a href="https://github.com/${author}">@${author}</a>`)}</td></tr>` : "",
|
meta.authors?.length ? `<tr><th>Authors</th><td>${[meta.authors].flat().map(author => `<a href="https://github.com/${author}">@${author}</a>`)}</td></tr>` : "",
|
||||||
@@ -370,7 +371,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
|
|||||||
const table = [
|
const table = [
|
||||||
"<table>",
|
"<table>",
|
||||||
" <tr>",
|
" <tr>",
|
||||||
' <td align="center" nowrap="nowrap">Type</i></td><td align="center" nowrap="nowrap">Description</td>',
|
' <td align="center" nowrap="nowrap">Option</i></td><td align="center" nowrap="nowrap">Description</td>',
|
||||||
" </tr>",
|
" </tr>",
|
||||||
Object.entries(inputs).map(([option, {description, type, ...o}]) => {
|
Object.entries(inputs).map(([option, {description, type, ...o}]) => {
|
||||||
const cell = []
|
const cell = []
|
||||||
@@ -462,6 +463,7 @@ metadata.template = async function({__templates, name, plugins}) {
|
|||||||
//Header table
|
//Header table
|
||||||
const header = [
|
const header = [
|
||||||
"<table>",
|
"<table>",
|
||||||
|
` <tr><td colspan="2"><a href="/README.md#%EF%B8%8F-templates">← Back to templates index</a></td></tr>`,
|
||||||
` <tr><th colspan="2"><h3>${meta.name ?? "(unnamed template)"}</h3></th></tr>`,
|
` <tr><th colspan="2"><h3>${meta.name ?? "(unnamed template)"}</h3></th></tr>`,
|
||||||
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
|
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
|
||||||
" <tr>",
|
" <tr>",
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ name: "📆 Calendar"
|
|||||||
category: github
|
category: github
|
||||||
description: This plugin displays your commit calendar across several years
|
description: This plugin displays your commit calendar across several years
|
||||||
examples:
|
examples:
|
||||||
+current year: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.calendar.svg
|
current year: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.calendar.svg
|
||||||
full history: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.calendar.full.svg
|
+full history: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.calendar.full.svg
|
||||||
index: 25
|
index: 25
|
||||||
supports:
|
supports:
|
||||||
- user
|
- user
|
||||||
|
|||||||
Reference in New Issue
Block a user