mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-21 20:30:43 +00:00
fix: fix map filter used for meta description (#457)
This commit is contained in:
parent
bad8c7e7a1
commit
a95add9fbe
@ -6,8 +6,9 @@
|
||||
|
||||
### {{ key }}
|
||||
{% if item.description is defined and item.description %}
|
||||
{% set description = [item.description] if item.description is string else item.description %}
|
||||
|
||||
{{ item.description | map("replace", "\n\n", "\n") | safe_join("\n") }}
|
||||
{{ description | map("replace", "\n\n", "\n") | safe_join("\n") }}
|
||||
{% endif %}
|
||||
{% if item.value is defined and item.value %}
|
||||
|
||||
|
@ -9,8 +9,9 @@ summary: {{ meta.summary.value | safe_join(" ") }}
|
||||
---
|
||||
{% endif %}
|
||||
{% if description | deep_get(meta, "description.value") %}
|
||||
{% set description = [meta.description.value] if meta.description.value is string else meta.description.value %}
|
||||
|
||||
{{ meta.description.value | map("replace", "\n\n", "\n") | safe_join("\n") }}
|
||||
{{ description | map("replace", "\n\n", "\n") | safe_join("\n") }}
|
||||
{% endif %}
|
||||
|
||||
<!--more-->
|
||||
|
@ -3,8 +3,9 @@
|
||||
# {{ meta.name.value | safe_join(" ") }}
|
||||
{% endif %}
|
||||
{% if description | deep_get(meta, "description.value") %}
|
||||
{% set description = [meta.description.value] if meta.description.value is string else meta.description.value %}
|
||||
|
||||
{{ meta.description.value | map("replace", "\n\n", "\n") | safe_join("\n") }}
|
||||
{{ description | map("replace", "\n\n", "\n") | safe_join("\n") }}
|
||||
{% endif %}
|
||||
|
||||
{# TOC #}
|
||||
|
@ -6,8 +6,9 @@
|
||||
|
||||
### {{ key }}
|
||||
{% if item.description is defined and item.description %}
|
||||
{% set description = [item.description] if item.description is string else item.description %}
|
||||
|
||||
{{ item.description | map("replace", "\n\n", "\n") | safe_join("\n") }}
|
||||
{{ description | map("replace", "\n\n", "\n") | safe_join("\n") }}
|
||||
{% endif %}
|
||||
{% if item.value is defined and item.value %}
|
||||
|
||||
|
@ -3,8 +3,7 @@
|
||||
[![Build Status](https://img.shields.io/drone/build/thegeeklab/ansible-doctor?logo=drone&server=https%3A%2F%2Fdrone.thegeeklab.de)](https://drone.thegeeklab.de/thegeeklab/ansible-doctor)
|
||||
[![License: GPL-3.0](https://img.shields.io/github/license/thegeeklab/ansible-doctor)](https://github.com/thegeeklab/ansible-doctor/blob/main/LICENSE)
|
||||
|
||||
Role to demonstrate ansible-doctor. It is also possible to overwrite
|
||||
the default description with an annotation.
|
||||
Role to demonstrate ansible-doctor.
|
||||
|
||||
## Table of content
|
||||
|
||||
|
@ -1,8 +1,4 @@
|
||||
---
|
||||
# @meta description: >
|
||||
# Role to demonstrate ansible-doctor. It is also possible to overwrite
|
||||
# the default description with an annotation.
|
||||
# @end
|
||||
# @meta author: [John Doe](https\://blog.example.com)
|
||||
galaxy_info:
|
||||
description: Role to demonstrate ansible-doctor.
|
||||
|
Loading…
Reference in New Issue
Block a user