From 73b73909679c723dd98780c5b649b8f839506164 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Mon, 10 Oct 2022 13:47:00 +0200 Subject: [PATCH] Update docs workflows to use intersphinx links instead of hard coding 'fake' module links (#1142) (#1144) (cherry picked from commit 226ea7c5548cc0b934f558a1925c642fba3aa466) Co-authored-by: Mark Chappell --- .github/workflows/docs-pr.yml | 12 ++++++------ .github/workflows/docs-push.yml | 6 +++--- changelogs/fragments/workflows-add-intersphinx.yml | 2 ++ 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 changelogs/fragments/workflows-add-intersphinx.yml diff --git a/.github/workflows/docs-pr.yml b/.github/workflows/docs-pr.yml index 6af48e13aec..10cb50de7d6 100644 --- a/.github/workflows/docs-pr.yml +++ b/.github/workflows/docs-pr.yml @@ -18,9 +18,9 @@ jobs: with: init-lenient: false init-fail-on-error: true - # Please also update docs-push.yml - provide-link-targets: | - ansible_collections.community.aws.autoscaling_launch_config_module + intersphinx-links: | + community_aws:https://ansible-collections.github.io/community.aws/branch/main/ + ansible_devel:https://docs.ansible.com/ansible-core/devel/ build-docs: @@ -31,9 +31,9 @@ jobs: with: init-lenient: true init-fail-on-error: false - # Please also update docs-push.yml - provide-link-targets: | - ansible_collections.community.aws.autoscaling_launch_config_module + intersphinx-links: | + community_aws:https://ansible-collections.github.io/community.aws/branch/main/ + ansible_devel:https://docs.ansible.com/ansible-core/devel/ comment: permissions: diff --git a/.github/workflows/docs-push.yml b/.github/workflows/docs-push.yml index 2ca02806635..0acd93200ab 100644 --- a/.github/workflows/docs-push.yml +++ b/.github/workflows/docs-push.yml @@ -21,9 +21,9 @@ jobs: with: init-lenient: false init-fail-on-error: true - # Please also update docs-pr.yml - provide-link-targets: | - ansible_collections.community.aws.autoscaling_launch_config_module + intersphinx-links: | + community_aws:https://ansible-collections.github.io/community.aws/branch/main/ + ansible_devel:https://docs.ansible.com/ansible-core/devel/ publish-docs-gh-pages: # use to prevent running on forks diff --git a/changelogs/fragments/workflows-add-intersphinx.yml b/changelogs/fragments/workflows-add-intersphinx.yml new file mode 100644 index 00000000000..104b3d3f327 --- /dev/null +++ b/changelogs/fragments/workflows-add-intersphinx.yml @@ -0,0 +1,2 @@ +trivial: +- Update docs build/test workflows to use intersphinx links between amazon.aws and community.aws.