mirror of
https://github.com/Luzifer/go-latestver.git
synced 2024-12-29 23:01:19 +00:00
Add docs for links
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3a3aedf998
commit
b8a6573106
2 changed files with 14 additions and 0 deletions
|
@ -13,6 +13,11 @@ catalog:
|
|||
url: https://alpinelinux.org/downloads/
|
||||
xpath: '//div[@class="l-box"]/p/strong'
|
||||
|
||||
links:
|
||||
- icon_class: 'fas fa-globe'
|
||||
name: 'Website'
|
||||
url: 'https://alpinelinux.org'
|
||||
|
||||
check_interval: 1h
|
||||
|
||||
...
|
||||
|
@ -22,6 +27,8 @@ Each catalog entry contains a `name` and a `tag` representing the entry. You can
|
|||
|
||||
Additionally you will configure a `fetcher` with its corresponding `fetcher_config` for the catalog entry. In the example above the `html` fetcher is used with two attributes configured. The attributes for each fetcher can be found below.
|
||||
|
||||
You can provide your own `links` for each catalog entry which will be added to or override the links returned from the fetcher. If you provide the same `name` as the fetcher uses the link of the fetcher will be overridden. The `icon_class` should consist of `fas` or `fab` and an icon (for example `fa-global`). You can use all **solid** (`fas`) or **breand** (`fab`) icons within [Font Awesome v5 Free](https://fontawesome.com/v5.15/icons?d=gallery&s=brands,solid&m=free).
|
||||
|
||||
## Available Fetchers
|
||||
|
||||
## Fetcher: `atlassian`
|
||||
|
|
|
@ -13,6 +13,11 @@ catalog:
|
|||
url: https://alpinelinux.org/downloads/
|
||||
xpath: '//div[@class="l-box"]/p/strong'
|
||||
|
||||
links:
|
||||
- icon_class: 'fas fa-globe'
|
||||
name: 'Website'
|
||||
url: 'https://alpinelinux.org'
|
||||
|
||||
check_interval: 1h
|
||||
|
||||
...
|
||||
|
@ -22,6 +27,8 @@ Each catalog entry contains a `name` and a `tag` representing the entry. You can
|
|||
|
||||
Additionally you will configure a `fetcher` with its corresponding `fetcher_config` for the catalog entry. In the example above the `html` fetcher is used with two attributes configured. The attributes for each fetcher can be found below.
|
||||
|
||||
You can provide your own `links` for each catalog entry which will be added to or override the links returned from the fetcher. If you provide the same `name` as the fetcher uses the link of the fetcher will be overridden. The `icon_class` should consist of `fas` or `fab` and an icon (for example `fa-global`). You can use all **solid** (`fas`) or **breand** (`fab`) icons within [Font Awesome v5 Free](https://fontawesome.com/v5.15/icons?d=gallery&s=brands,solid&m=free).
|
||||
|
||||
## Available Fetchers
|
||||
|
||||
{% for module in modules -%}
|
||||
|
|
Loading…
Reference in a new issue