Skip to content

Commit a03ded2

Browse files
committed
Merge branch 'release-v1.2.0'
2 parents ed90238 + e30b5c6 commit a03ded2

31 files changed

+145
-2602
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ansible Certified Content for IBM Z**, is available on both, **Galaxy**
3030
as community supported and **Automation Hub** with enterprise support.
3131

3232
For **guides** and **reference**, please visit [the documentation
33-
site](https://ansible-collections.github.io/ibm_zos_core/).
33+
site](https://ibm.github.io/z_ansible_collections_doc/index.html).
3434

3535
Features
3636
========

docs/ansible_content.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,37 @@ works closely with offerings such as `IBM z/OS IMS collection`_ to deliver
1919
a solution that will enable you to automate tasks on z/OS subsystems such
2020
as IMS.
2121

22+
Modules include documentation that is similar to a UNIX, or UNIX-like operating
23+
system man page (manual page). This documentation can be accessed from the
24+
command line by using the ``ansible-doc`` command documented in the
25+
`Ansible guide`_.
26+
27+
Here's how to use the ``ansible-doc`` command after you install the
28+
**IBM z/OS core collection**: ``ansible-doc ibm.ibm_zos_core.zos_data_set``
29+
30+
.. code-block:: sh
31+
32+
$ansible-doc ibm.ibm_zos_core.zos_data_set
33+
34+
> ZOS_DATA_SET (/Users/user/.ansible/collections/ansible_collections/ibm/ibm_zos_core/plugins/modules/zos_data_set.py)
35+
36+
Create, delete and set attributes of data sets. When forcing data set replacement, contents will not be preserved.
37+
38+
OPTIONS (= is mandatory):
39+
40+
- batch
41+
Batch can be used to perform operations on multiple data sets in a single module call.
42+
Each item in the list expects the same options as zos_data_set.
43+
type: list
44+
45+
- data_class
46+
The data class name (required for SMS-managed data sets)
47+
type: str
48+
49+
50+
.. _Ansible guide:
51+
https://docs.ansible.com/ansible/latest/cli/ansible-doc.html#ansible-doc
52+
2253
.. _IBM z/OS IMS collection:
2354
https://github.com/ansible-collections/ibm_zos_ims
2455

docs/scripts/auto-doc-gen.sh

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,43 @@ DOC_DIR=`( cd "$SCRIPT_PATH" && pwd )| sed 's|\(.*\)/.*|\1|'`
1616
# Source the playbook*.rst into a single RST so that our topic is a single html
1717
################################################################################
1818

19-
# If playbooks-single.rst exists, zero it out so we generate the lastest based
20-
# on the payboook-*.rst files
21-
if [[ -f $DOC_DIR/source/playbooks-single.rst ]]; then
22-
:> $DOC_DIR/source/playbooks-single.rst
23-
fi
24-
25-
# Remove the first toctree entry and onwards from playbooks.rst to create a new
26-
# RST playbooks-single.rst. Note, you should ensure toctree entries are at the
27-
# end of the conent to not remove unwanted content.
28-
if [[ -f $DOC_DIR/source/playbooks.rst ]]; then
29-
30-
# Remove the toctree entries
31-
awk '/toctree/ {exit} {print}' $DOC_DIR/source/playbooks.rst >> $DOC_DIR/source/playbooks-single.rst
32-
33-
# Concat the interested RSTs into playbooks-single.rst to create a single RST
34-
if [[ -f $DOC_DIR/source/playbook_config_setup.rst && -f $DOC_DIR/source/playbook_inventory.rst && -f $DOC_DIR/source/playbook_group_vars.rst && -f $DOC_DIR/source/playbook_run.rst ]]; then
35-
36-
# Inform readers this is auto generated thus avoding the need to maintain
37-
echo ".. ...........................................................................\n$(<$DOC_DIR/source/playbooks-single.rst)" > $DOC_DIR/source/playbooks-single.rst
38-
echo ".. Auto generated restructured text .\n$(<$DOC_DIR/source/playbooks-single.rst)" > $DOC_DIR/source/playbooks-single.rst
39-
echo ".. ...........................................................................\n$(<$DOC_DIR/source/playbooks-single.rst)" > $DOC_DIR/source/playbooks-single.rst
40-
41-
# For each identified file we want to merge into playbooks-single.rst cat them and merge
42-
for file in $DOC_DIR/source/playbook_config_setup.rst $DOC_DIR/source/playbook_inventory.rst $DOC_DIR/source/playbook_group_vars.rst $DOC_DIR/source/playbook_run.rst; do
43-
echo "" >> $DOC_DIR/source/playbooks-single.rst;
44-
cat "$file" >> $DOC_DIR/source/playbooks-single.rst;
45-
done
46-
else
47-
# When unable to merge remove the auto generated RST so that is apparent
48-
# it is not generated and will diff in a 'git status'
49-
50-
rm -rf $DOC_DIR/source/playbooks-single.rst
51-
fi
52-
fi
19+
################################################################################
20+
# Deprecated playbooks-single.rst
21+
# # If playbooks-single.rst exists, zero it out so we generate the lastest based
22+
# # on the payboook-*.rst files
23+
# if [[ -f $DOC_DIR/source/playbooks-single.rst ]]; then
24+
# :> $DOC_DIR/source/playbooks-single.rst
25+
# fi
26+
27+
# # Remove the first toctree entry and onwards from playbooks.rst to create a new
28+
# # RST playbooks-single.rst. Note, you should ensure toctree entries are at the
29+
# # end of the conent to not remove unwanted content.
30+
# if [[ -f $DOC_DIR/source/playbooks.rst ]]; then
31+
32+
# # Remove the toctree entries
33+
# awk '/toctree/ {exit} {print}' $DOC_DIR/source/playbooks.rst >> $DOC_DIR/source/playbooks-single.rst
34+
35+
# # Concat the interested RSTs into playbooks-single.rst to create a single RST
36+
# if [[ -f $DOC_DIR/source/playbook_config_setup.rst && -f $DOC_DIR/source/playbook_inventory.rst && -f $DOC_DIR/source/playbook_group_vars.rst && -f $DOC_DIR/source/playbook_run.rst ]]; then
37+
38+
# # Inform readers this is auto generated thus avoding the need to maintain
39+
# echo ".. ...........................................................................\n$(<$DOC_DIR/source/playbooks-single.rst)" > $DOC_DIR/source/playbooks-single.rst
40+
# echo ".. Auto generated restructured text .\n$(<$DOC_DIR/source/playbooks-single.rst)" > $DOC_DIR/source/playbooks-single.rst
41+
# echo ".. ...........................................................................\n$(<$DOC_DIR/source/playbooks-single.rst)" > $DOC_DIR/source/playbooks-single.rst
42+
43+
# # For each identified file we want to merge into playbooks-single.rst cat them and merge
44+
# for file in $DOC_DIR/source/playbook_config_setup.rst $DOC_DIR/source/playbook_inventory.rst $DOC_DIR/source/playbook_group_vars.rst $DOC_DIR/source/playbook_run.rst; do
45+
# echo "" >> $DOC_DIR/source/playbooks-single.rst;
46+
# cat "$file" >> $DOC_DIR/source/playbooks-single.rst;
47+
# done
48+
# else
49+
# # When unable to merge remove the auto generated RST so that is apparent
50+
# # it is not generated and will diff in a 'git status'
51+
52+
# rm -rf $DOC_DIR/source/playbooks-single.rst
53+
# fi
54+
# fi
55+
################################################################################
5356

5457
# If requirements-single.rst exists, zero it out so we generate the lastest based
5558
# on the requirements-*.rst files

docs/source/conf.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@
4747
# List of patterns, relative to source directory, that match files and
4848
# directories to ignore when looking for source files.
4949
# This pattern also affects html_static_path and html_extra_path.
50-
exclude_patterns = ['playbooks.rst', 'playbook_config_setup.rst',
51-
'playbook_group_vars.rst', 'playbook_inventory.rst',
52-
'playbook_run.rst', 'requirements.rst',
53-
'requirements_managed.rst']
50+
exclude_patterns = ['requirements.rst', 'requirements_managed.rst']
5451

5552
##############################################################################
5653
# Options for HTML output
@@ -150,7 +147,7 @@
150147
# White list which Git tags documentation will be generated and linked into the
151148
# version selection box. This is currently a manual selection, until more
152149
# versions are released, there are no regular expressions used.
153-
scv_whitelist_tags = ('v1.0.0', 'v1.1.0$', 'v1.2.0-beta.4',)
150+
scv_whitelist_tags = ('v1.0.0', 'v1.1.0$', 'v1.2.0$',)
154151

155152
# Sort versions by one or more values. Valid values are semver, alpha, and time.
156153
# Semantic is referred to as 'semver', this would ensure our latest VRM is

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ansible-doc to automate tasks on z/OS.
6161

6262
installation
6363
requirements-single
64-
playbooks-single
64+
playbooks
6565

6666
.. toctree::
6767
:maxdepth: 1

docs/source/playbook_config_setup.rst

Lines changed: 0 additions & 64 deletions
This file was deleted.

docs/source/playbook_group_vars.rst

Lines changed: 0 additions & 118 deletions
This file was deleted.

docs/source/playbook_inventory.rst

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)