Update documentation

This commit is contained in:
lowlighter
2021-03-02 10:29:01 +01:00
parent df6638fc9e
commit 5a821486ae
9 changed files with 25 additions and 8 deletions

View File

@@ -13,6 +13,7 @@
const __metrics = path.join(path.dirname(url.fileURLToPath(import.meta.url)), "../../..")
const __templates = path.join(__metrics, "source/templates")
const __plugins = path.join(__metrics, "source/plugins")
const __package = path.join(__metrics, "package.json")
//Init
const logger = log ? console.debug : () => null
@@ -45,8 +46,11 @@
const {classic, repository, community, ...templates} = Templates
Templates = {classic, repository, ...templates, community}
//Packaged metadata
const packaged = JSON.parse(`${await fs.promises.readFile(__package)}`)
//Metadata
return {plugins:Plugins, templates:Templates}
return {plugins:Plugins, templates:Templates, packaged}
}
/**Metadata extractor for templates */

View File

@@ -5,6 +5,9 @@ The recent *posts* plugin displays recent articles you wrote on an external sour
<table>
<td align="center">
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.posts.svg">
<details><summary>With posts descriptions and cover images version</summary>
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.posts.full.svg">
</details>
<img width="900" height="1" alt="">
</td>
</table>

View File

@@ -5,6 +5,9 @@ The recent *tweets* plugin displays your latest tweets from your [Twitter](https
<table>
<td align="center">
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.tweets.svg">
<details><summary>With tweets attachments version</summary>
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.tweets.attachments.svg">
</details>
<img width="900" height="1" alt="">
</td>
</table>