mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Update docs helper. Automate generation of 'Merging lists of dictiona… (#4125)
* Update docs helper. Automate generation of 'Merging lists of dictionaries'. * Updated helper/lists_mergeby/playbook.yml, list of examples and templates. See playbook.yml on how to create *.out files, test examples and generate the REST file filter_guide_abstract_informations_merging_lists_of_dictionaries.rst * Generated REST file copied to directory rst * Simplified examples. The common lists are published only once. Only the expressions are published instead of the whole tasks. * To change the content of the section 'Merging lists of dictionaries' update template filter_guide_abstract_informations_merging_lists_of_dictionaries.rst.j2 and run the playbook. * Deleted rst/examples/lists_mergeby. Not needed anymore. * Update docs/docsite/helper/lists_mergeby/filter_guide_abstract_informations_merging_lists_of_dictionaries.rst.j2 Co-authored-by: Felix Fontein <felix@fontein.de> * Update docs/docsite/rst/filter_guide_abstract_informations_merging_lists_of_dictionaries.rst Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
c09f529f02
commit
15f7e25b3c
48 changed files with 435 additions and 675 deletions
8
docs/docsite/helper/lists_mergeby/examples_all.rst.j2
Normal file
8
docs/docsite/helper/lists_mergeby/examples_all.rst.j2
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% for i in examples %}
|
||||
{{ i.label }}
|
||||
|
||||
.. code-block:: {{ i.lang }}
|
||||
|
||||
{{ lookup('file', i.file)|indent(2) }}
|
||||
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue