aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2019-12-17 14:10:04 -0800
committerBastien Wirtz <bastien.wirtz@gmail.com>2019-12-17 14:10:04 -0800
commit7fd9dc6f10a30748cf63caf61ee71f602407d6ac (patch)
tree33bb97b0645605e3875326292cdc99b654fe5249 /README.md
parent05bdc2680193564dbb8acbd85aa8d79eeec546f5 (diff)
downloadhomer-7fd9dc6f10a30748cf63caf61ee71f602407d6ac.tar.gz
homer-7fd9dc6f10a30748cf63caf61ee71f602407d6ac.tar.zst
homer-7fd9dc6f10a30748cf63caf61ee71f602407d6ac.zip
Optionaly load message from an endpoint.
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 62bbd77..f149549 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,7 @@ logo: "assets/homer.png"
27 27
28# Optional message 28# Optional message
29message: 29message:
30 # url: "https://<my-api-endpoint>" # Can fetch information from an endpoint to override value below.
30 style: "is-warning" 31 style: "is-warning"
31 title: "Optional message!" 32 title: "Optional message!"
32 content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula." 33 content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula."
@@ -85,3 +86,16 @@ services:
85 url: "#" 86 url: "#"
86 87
87``` 88```
89
90If you choose to fetch message information from an endpoint, the output format should be:
91
92```json
93{
94 "style": null,
95 "title": "Lorem ipsum 42",
96 "content": "LA LA LA Lorem ipsum dolor sit amet, ....."
97}
98```
99
100`null` value or missing keys will be ignored and value from the `config.yml` will be used if available.
101Empty values (either in `config.yml` or the endpoint data) will hide the element (ex: set `"title": ""` to hide the title bar)