Skip to content

Commit

Permalink
admonitions
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
nemchik authored Aug 4, 2023
1 parent e7f3b7d commit 22f544c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
6 changes: 4 additions & 2 deletions roles/generate-jenkins/templates/DOCUMENTATION.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#jinja2: keep_trailing_newline:True
{%- set output_type="DOCUMENTATION" -%}
{%- set has_latest= true if (development_versions == true and 'latest' in (development_versions_items | map(attribute="tag"))) or (development_versions == false) else false -%}
---
title: {{ project_name }}
Expand Down Expand Up @@ -169,8 +170,9 @@ Containers are configured using parameters passed at runtime (such as those abov

### Portainer notice

!!!warning
This image utilises `cap_add` or `sysctl` to work properly. This is not implemented properly in some versions of Portainer, thus this image may not work if deployed through Portainer.
!!! warning

This image utilises `cap_add` or `sysctl` to work properly. This is not implemented properly in some versions of Portainer, thus this image may not work if deployed through Portainer.
{% endif %}

{% include "README_SNIPPETS/ENV_VAR_FILES.j2" | trim %}
Expand Down
1 change: 1 addition & 0 deletions roles/generate-jenkins/templates/DOCUMENTATION.j2-CUSTOM
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%- set output_type="DOCUMENTATION" -%}
---
title: {{ project_name }}
---
Expand Down
1 change: 1 addition & 0 deletions roles/generate-jenkins/templates/README.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#jinja2: keep_trailing_newline:True
{%- set output_type="README" -%}
{%- set has_latest= true if (development_versions == true and 'latest' in (development_versions_items | map(attribute="tag"))) or (development_versions == false) else false -%}
{% include "README_SNIPPETS/DO_NOT_EDIT.j2" | trim %}
{% include "README_SNIPPETS/GROUP_INFO.j2" | trim %}
Expand Down
1 change: 1 addition & 0 deletions roles/generate-jenkins/templates/README.j2-CUSTOM
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%- set output_type="README" -%}
{% include "README_SNIPPETS/DO_NOT_EDIT.j2" | trim %}
{% if project_deprecation_status %}
{% include "README_SNIPPETS/DEPRECATION.j2" | trim %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DEPRECATION NOTICE
{{ '!!! danger "' if output_type == "DOCUMENTATION" else '# ' }}DEPRECATION NOTICE{{ '"' if output_type == "DOCUMENTATION" }}

This image is deprecated. We will not offer support for this image and it will not be updated.
{{ ' ' if output_type == "DOCUMENTATION" }}This image is deprecated. We will not offer support for this image and it will not be updated.
{% if project_deprecation_message is defined %}{{ project_deprecation_message }}{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ Below are the instructions for updating containers:

* You can also remove the old dangling images: `docker image prune`

**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose]({{ lsio_docs_url }}/general/docker-compose).
{{ '!!! warning\n\n ' if output_type == "DOCUMENTATION" else '**Warning:** ' }}We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose]({{ lsio_docs_url }}/general/docker-compose).

### Image Update Notifications - Diun (Docker Image Update Notifier)

* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
{{ '!!! tip\n\n ' if output_type == "DOCUMENTATION" else '* ' }}We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
1 change: 1 addition & 0 deletions roles/generate-jenkins/templates/lite.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%- set output_type="lite" -%}
{% if project_deprecation_status %}
{% include "README_SNIPPETS/DEPRECATION.j2" | trim %}

Expand Down
1 change: 1 addition & 0 deletions roles/generate-jenkins/templates/lite.j2-CUSTOM
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%- set output_type="lite" -%}
{% if project_deprecation_status %}
{% include "README_SNIPPETS/DEPRECATION.j2" | trim %}

Expand Down

0 comments on commit 22f544c

Please sign in to comment.