Skip to content

Commit

Permalink
Merge pull request ansible-collections#21 from alinabuzachis/docs_wor…
Browse files Browse the repository at this point in the history
…kflow

Add docs validation workflows
  • Loading branch information
gravesm authored Aug 17, 2022
2 parents 30d9694 + 1f166a2 commit 273cd55
Show file tree
Hide file tree
Showing 25 changed files with 110 additions and 163 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/docs-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Collection Docs
concurrency:
group: docs-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request_target:
types: [opened, synchronize, reopened, closed]

jobs:
validate-docs:
permissions:
contents: read
name: Validate Ansible Docs
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
with:
init-lenient: false
init-fail-on-error: true
extra-collections: 'amazon.aws'


build-docs:
permissions:
contents: read
name: Build Ansible Docs
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
with:
init-lenient: true
init-fail-on-error: false
extra-collections: 'amazon.aws'

comment:
permissions:
pull-requests: write
runs-on: ubuntu-latest
needs: [build-docs]
name: PR comments
steps:
- name: PR comment
uses: ansible-community/github-docs-build/actions/ansible-docs-build-comment@main
with:
body-includes: '## Docs Build'
reactions: heart
action: ${{ needs.build-docs.outputs.changed != 'true' && 'remove' || '' }}
on-closed-action: remove
on-merged-body: |
## Docs Build 📝
Thank you for contribution!✨
This PR has been merged and your docs changes will be incorporated when they are next published.
body: |
## Docs Build 📝
Thank you for contribution!✨
The docsite for **this PR** is available for download as an artifact from this run:
${{ needs.build-docs.outputs.artifact-url }}
File changes:
${{ needs.build-docs.outputs.diff-files-rendered }}
${{ needs.build-docs.outputs.diff-rendered }}
4 changes: 2 additions & 2 deletions docs/docsite/rst/guide_amazon_cloud.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. _ansible_collections.amazon.cloud.docsite.aws_intro:

*************************
*****************************
Amazon.Cloud Collection Guide
*************************
*****************************

The AWS Cloud Control Collection ``amazon.cloud`` is an experimental alpha collection that contains a number of generated modules using the Cloud Control API for controlling Amazon Web Services (AWS). This guide explains how to use the modules to automate your AWS resources with Ansible.

Expand Down
98 changes: 0 additions & 98 deletions plugins/doc_fragments/aws.py

This file was deleted.

20 changes: 0 additions & 20 deletions plugins/doc_fragments/ec2.py

This file was deleted.

4 changes: 2 additions & 2 deletions plugins/modules/backup_backup_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/backup_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
compliance_resource_types:
description:
- Describes whether the control scope includes one or more
types of resources, such as `EFS` or `RDS`.
types of resources, such as EFS or RDS.
elements: str
type: list
tags:
Expand Down Expand Up @@ -177,8 +177,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/backup_report_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
description:
- Identifies the report template for the report.
- Reports are built using a report template.
- 'The report templates are: `C(BACKUP_JOB_REPORT) | C(COPY_JOB_REPORT)
| C(RESTORE_JOB_REPORT)`'
- 'The report templates are: C(BACKUP_JOB_REPORT) | C(COPY_JOB_REPORT)
| C(RESTORE_JOB_REPORT)'
required: true
type: str
type: dict
Expand Down Expand Up @@ -142,8 +142,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/eks_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/iam_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/lambda_code_signing_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/lambda_event_source_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/logs_log_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/logs_query_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/logs_resource_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/rdsdb_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/redshift_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/redshift_event_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/s3_access_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/s3_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,8 +1363,8 @@
version_added: 0.1.0
requirements: []
extends_documentation_fragment:
- amazon.cloud.aws
- amazon.cloud.ec2
- amazon.aws.aws
- amazon.aws.ec2
"""

EXAMPLES = r"""
Expand Down
Loading

0 comments on commit 273cd55

Please sign in to comment.