Rename GitHub metrics to Metrics
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# 📊 GitHub metrics
|
# 📊 Metrics
|
||||||
|
|
||||||
## 💪 Interested in contributing ?
|
## 💪 Interested in contributing ?
|
||||||
|
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -1,10 +1,10 @@
|
|||||||
# 📊 GitHub metrics
|
# 📊 Metrics
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Generates your metrics that you can embed everywhere !
|
Generates your metrics that you can embed everywhere !
|
||||||
|
|
||||||
[](https://metrics.lecoq.io)
|
[](https://metrics.lecoq.io)
|
||||||
|
|
||||||
But there's more with [plugins](https://github.com/lowlighter/metrics/tree/master/src/plugins) and [templates](https://github.com/lowlighter/metrics/tree/master/src/templates) !
|
But there's more with [plugins](https://github.com/lowlighter/metrics/tree/master/src/plugins) and [templates](https://github.com/lowlighter/metrics/tree/master/src/templates) !
|
||||||
|
|
||||||
@@ -214,7 +214,7 @@ See all supported options in [action.yml](action.yml).
|
|||||||
Assuming your username is `my-github-user`, you can then embed your metrics in your repository readme like below :
|
Assuming your username is `my-github-user`, you can then embed your metrics in your repository readme like below :
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||

|

|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@@ -258,7 +258,7 @@ Go to the `Settings` of your personal repository to create a new secret and past
|
|||||||
Create a new workflow from the `Actions` tab of your personal repository and paste the following :
|
Create a new workflow from the `Actions` tab of your personal repository and paste the following :
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: GitHub metrics
|
name: Metrics
|
||||||
on:
|
on:
|
||||||
# Schedule updates
|
# Schedule updates
|
||||||
schedule: [{cron: "0 * * * *"}]
|
schedule: [{cron: "0 * * * *"}]
|
||||||
@@ -306,7 +306,7 @@ Note that most of steps presented there are illustrative examples for this readm
|
|||||||
Edit your repository readme and add your metrics image :
|
Edit your repository readme and add your metrics image :
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||

|

|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -318,7 +318,7 @@ For conveniency, you can use the shared instance available at [metrics.lecoq.io]
|
|||||||
Assuming your username is `my-github-user`, you can embed your metrics in your repository readme like below :
|
Assuming your username is `my-github-user`, you can embed your metrics in your repository readme like below :
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||

|

|
||||||
```
|
```
|
||||||
|
|
||||||
Visit [metrics.lecoq.io](https://metrics.lecoq.io) for more informations.
|
Visit [metrics.lecoq.io](https://metrics.lecoq.io) for more informations.
|
||||||
@@ -401,7 +401,7 @@ From your browser, you should be able to access your web instance on the port yo
|
|||||||
Edit your repository readme and add your metrics image from your server domain :
|
Edit your repository readme and add your metrics image from your server domain :
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||

|

|
||||||
```
|
```
|
||||||
|
|
||||||
### 6. (optional) Setup as service on your instance
|
### 6. (optional) Setup as service on your instance
|
||||||
@@ -413,7 +413,7 @@ Create a new service file `/etc/systemd/system/github_metrics.service` and paste
|
|||||||
|
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=GitHub metrics
|
Description=Metrics
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
//Runner
|
//Runner
|
||||||
try {
|
try {
|
||||||
//Initialization
|
//Initialization
|
||||||
console.log(`GitHub metrics`)
|
console.log("─".repeat(64))
|
||||||
|
console.log(`Metrics`)
|
||||||
console.log("─".repeat(64))
|
console.log("─".repeat(64))
|
||||||
process.on("unhandledRejection", error => { throw error })
|
process.on("unhandledRejection", error => { throw error })
|
||||||
|
|
||||||
|
|||||||
@@ -118,13 +118,13 @@
|
|||||||
},
|
},
|
||||||
//Embedded generated code
|
//Embedded generated code
|
||||||
embed() {
|
embed() {
|
||||||
return ``
|
return ``
|
||||||
},
|
},
|
||||||
//GitHub action auto-generated code
|
//GitHub action auto-generated code
|
||||||
action() {
|
action() {
|
||||||
return [
|
return [
|
||||||
`# Visit https://github.com/lowlighter/metrics/blob/master/action.yml for full reference`,
|
`# Visit https://github.com/lowlighter/metrics/blob/master/action.yml for full reference`,
|
||||||
`name: GitHub metrics`,
|
`name: Metrics`,
|
||||||
`on:`,
|
`on:`,
|
||||||
` # Schedule updates`,
|
` # Schedule updates`,
|
||||||
` schedule: [{cron: "0 * * * *"}]`,
|
` schedule: [{cron: "0 * * * *"}]`,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>GitHub metrics</title>
|
<title>Metrics</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="A SVG image generator which includes activity, community and repositories metrics about your GitHub account that you can includes on your profile">
|
<meta name="description" content="A SVG image generator which includes activity, community and repositories metrics about your GitHub account that you can includes on your profile">
|
||||||
<meta name="author" content="lowlighter">
|
<meta name="author" content="lowlighter">
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
<pre><%# -%>
|
<pre><%# -%>
|
||||||
<% if (base.metadata) { %>
|
<% if (base.metadata) { %>
|
||||||
<div class="banner"><%# -%>
|
<div class="banner"><%# -%>
|
||||||
GitHub metrics generator <%= meta.version %>
|
Metrics generator <%= meta.version %>
|
||||||
These generated metrics comes with ABSOLUTELY NO
|
These generated metrics comes with ABSOLUTELY NO
|
||||||
WARRANTY, to the extent permitted by applicable law.
|
WARRANTY, to the extent permitted by applicable law.
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
Reference in New Issue
Block a user