diff --git a/.github/settings.yml b/.github/settings.yml new file mode 100644 index 0000000..4b20213 --- /dev/null +++ b/.github/settings.yml @@ -0,0 +1,62 @@ +--- +repository: + name: ansible-doctor + description: Simple annotation based documentation for your roles + homepage: https://ansible-doctor.geekdocs.de + topics: ansible, documentation, automation, python + + private: false + has_issues: true + has_projects: false + has_wiki: false + has_downloads: false + + default_branch: master + + allow_squash_merge: true + allow_merge_commit: true + allow_rebase_merge: true + +labels: + - name: bug + color: d73a4a + description: Something isn't working + - name: documentation + color: 0075ca + description: Improvements or additions to documentation + - name: duplicate + color: cfd3d7 + description: This issue or pull request already exists + - name: enhancement + color: a2eeef + description: New feature or request + - name: good first issue + color: 7057ff + description: Good for newcomers + - name: help wanted + color: 008672 + description: Extra attention is needed + - name: invalid + color: e4e669 + description: This doesn't seem right + - name: question + color: d876e3 + description: Further information is requested + - name: wontfix + color: ffffff + description: This will not be worked on + +branches: + - name: master + protection: + required_pull_request_reviews: null + required_status_checks: + strict: true + contexts: + - continuous-integration/drone/pr + enforce_admins: false + restrictions: + users: [] + teams: [] + +... diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d30138..5d686c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,3 @@ * BUGFIX * remove only first hashtag from a multiline comment + * add better handling of meta dependencies in templates diff --git a/ansibledoctor/templates/hugo-book/_meta.j2 b/ansibledoctor/templates/hugo-book/_meta.j2 index c75c2fe..f0ac73d 100644 --- a/ansibledoctor/templates/hugo-book/_meta.j2 +++ b/ansibledoctor/templates/hugo-book/_meta.j2 @@ -3,9 +3,11 @@ ## Dependencies {% if meta | deep_get(meta, "dependencies.value") %} -{% for item in meta.dependencies.value %} -* {{ item }} -{% endfor %} +{% if meta.dependencies.value is mapping %} +{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }} +{% else %} +{{ meta.dependencies.value | to_nice_yaml(indent=0) }} +{% endif %} {% else %} None. {% endif %} diff --git a/ansibledoctor/templates/readme/_meta.j2 b/ansibledoctor/templates/readme/_meta.j2 index 3dee21a..5e5b4a7 100644 --- a/ansibledoctor/templates/readme/_meta.j2 +++ b/ansibledoctor/templates/readme/_meta.j2 @@ -3,9 +3,11 @@ ## Dependencies {% if meta | deep_get(meta, "dependencies.value") %} -{% for item in meta.dependencies.value %} -* {{ item }} -{% endfor %} +{% if meta.dependencies.value is mapping %} +{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }} +{% else %} +{{ meta.dependencies.value | to_nice_yaml(indent=0) }} +{% endif %} {% else %} None. {% endif %}