docs: move editLink config into readme

This commit is contained in:
Danny Koppenhagen
2022-01-17 19:44:43 +01:00
committed by Bastian
parent 72883ca20c
commit fcdbb403e6
2 changed files with 16 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ To change the logo, create a public folder in your application and put your `log
For reference have a look at [public/logo.svg](./public/logo.svg). For reference have a look at [public/logo.svg](./public/logo.svg).
### Change the logo ### Change the date format
By default the Date format used in the app is `"MMMM YYYY"`. By default the Date format used in the app is `"MMMM YYYY"`.
You can change this by editing the config file as shown below. You can change this by editing the config file as shown below.
Please be sure you are entering a valid [moment.js format string](https://momentjs.com/docs/#/displaying/format). Please be sure you are entering a valid [moment.js format string](https://momentjs.com/docs/#/displaying/format).
@@ -124,6 +124,20 @@ Please be sure you are entering a valid [moment.js format string](https://moment
For reference have a look at [public/logo.svg](./public/logo.svg). For reference have a look at [public/logo.svg](./public/logo.svg).
### Edit from published radar
You can activate the `editLink` feature which will display a small edit button next to a technology which let's you jump directly to a gitlab / github / etc. edit page:
```json
{
// ...
"editLink": {
"radarLink": "https://github.com/AOEpeople/techradar/edit/main/radar",
"title": "Edit"
}
}
```
### Change the rings and quadrants config ### Change the rings and quadrants config
To change the default rings and quadrants of the radar, you can place a custom `config.json` file within the `public` folder. To change the default rings and quadrants of the radar, you can place a custom `config.json` file within the `public` folder.
The `showEmptyRings` option can be enabled to display the header for a ring even when it contains no items (helpful to The `showEmptyRings` option can be enabled to display the header for a ring even when it contains no items (helpful to

View File

@@ -65,9 +65,5 @@
} }
] ]
}, },
"dateFormat": "MMMM YYYY", "dateFormat": "MMMM YYYY"
"editLink": {
"radarLink": "https://github.com/AOEpeople/techradar/edit/main/radar",
"title": "Edit"
}
} }