-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Tags <in-version value="0.10.0" /> | ||
|
||
<preview-image name="reference/tags" /> | ||
|
||
Tags allow you to differentiate between services. It is quite convenient when you have several services that belong to the same project. | ||
|
||
## Name | ||
|
||
The name of the tag. | ||
|
||
```yaml | ||
name: Home | ||
``` | ||
To work correctly, the tag name must be unique. | ||
## Color | ||
Color of the tag. | ||
```yaml | ||
color: green | ||
``` | ||
Values: `red`, `orange`, `amber`, `yellow`, `lime`, `green`, `emerald`, `teal`, `cyan`, `sky`, `blue`, `indigo`, `violet`, `purple`, `fuchsia`, `pink`, `rose` | ||
|
||
Default: `blue` | ||
|
||
## Examples | ||
|
||
Two variants of using tags are presented. These examples can be used together. | ||
|
||
### Global tags | ||
|
||
If you have common tags, it's convenient to declare them at the beginning of the file and use them everywhere. | ||
|
||
```yaml | ||
tags: | ||
- name: Home | ||
color: green | ||
services: | ||
- title: Home Assistant | ||
description: Home automation | ||
link: https://home-assistant.home.local/ | ||
tags: | ||
- Home | ||
- title: Grafana | ||
description: Metrics dashboard | ||
link: https://grafana.home.local/ | ||
tags: | ||
- Home | ||
``` | ||
|
||
### Local tags | ||
|
||
If you don't have common tags, it is convenient to use local tags. They are declared inside the service and are available only for it. | ||
|
||
```yaml | ||
services: | ||
- title: Home Assistant | ||
description: Home automation | ||
link: https://home-assistant.home.local/ | ||
tags: | ||
- name: Home | ||
color: green | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Теги <in-version value="0.10.0" /> | ||
|
||
<preview-image name="reference/tags" /> | ||
|
||
Теги позволяют разграничивать сервисы. Довольно удобно, когда у вас есть несколько сервисов, которые относятся к одному и тому же проекту. | ||
|
||
## Название | ||
|
||
Название тега. | ||
|
||
```yaml | ||
name: Дом | ||
``` | ||
Для корректной работы, название тега должно быть уникальным. | ||
## Цвет | ||
Цвет тега. | ||
```yaml | ||
color: green | ||
``` | ||
Поддерживаемые значения: `red`, `orange`, `amber`, `yellow`, `lime`, `green`, `emerald`, `teal`, `cyan`, `sky`, `blue`, `indigo`, `violet`, `purple`, `fuchsia`, `pink`, `rose` | ||
|
||
Значение по умолчанию: `blue` | ||
|
||
## Примеры | ||
|
||
Представлено два варианта использования тегов. Данные примеры можно использовать вместе. | ||
|
||
### Глобальные теги | ||
|
||
Если у вас есть общие теги, то удобно объявить их в начале файла и использовать везде. | ||
|
||
```yaml | ||
tags: | ||
- name: Дом | ||
color: green | ||
services: | ||
- title: Home Assistant | ||
description: Автоматизация дома | ||
link: https://home-assistant.home.local/ | ||
tags: | ||
- Дом | ||
- title: Grafana | ||
description: Визуализация данных | ||
link: https://grafana.home.local/ | ||
tags: | ||
- Дом | ||
``` | ||
|
||
### Локальные теги | ||
|
||
Если у вас нет общих тегов, то удобно использовать локальные теги. Они объявляются внутри сервиса и доступны только для него. | ||
|
||
```yaml | ||
services: | ||
- title: Home Assistant | ||
description: Автоматизация дома | ||
link: https://home-assistant.home.local/ | ||
tags: | ||
- name: Дом | ||
color: green | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters