Skip to content

Commit 8a6da4a

Browse files
committed
improve collections page and add galaxy search
1 parent 69ad4ed commit 8a6da4a

File tree

3 files changed

+103
-4
lines changed

3 files changed

+103
-4
lines changed

data/collections.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
links:
2+
collection_index:
3+
label: Collection index
4+
link: "https://docs.ansible.com/ansible/latest/collections/index.html"
5+
module_index:
6+
label: Modules and plugins index
7+
link: "https://docs.ansible.com/ansible/latest/collections/all_plugins.html"
8+
builtin_index:
9+
label: Index of all modules and plugins contained in ansible-core
10+
link: "https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html"
11+
redirect: >-
12+
Ansible plugins and modules are available from collections.
13+
If you are looking for documentation related to a plugin or module, please try one of the following links.
14+
If you were redirected to this page from an older version of the Ansible documentation, please also consider updating your bookmarks.
15+
galaxy:
16+
title: Ansible Galaxy
17+
intro: You can also find lots of collections
18+
search:
19+
label: by searching on Ansible Galaxy.
20+
link: "https://galaxy.ansible.com/search"
21+
keywords: >-
22+
Use these popular search keywords to find tips and tools to automate everyday tasks, from provisioning infrastructure to deploying applications.
23+
links:
24+
system:
25+
label: System
26+
link: "https://galaxy.ansible.com/ui/search/?keywords=system"
27+
development:
28+
label: Development
29+
link: "https://galaxy.ansible.com/ui/search/?keywords=development"
30+
networking:
31+
label: Networking
32+
link: "https://galaxy.ansible.com/ui/search/?keywords=networking"
33+
cloud:
34+
label: Cloud
35+
link: "https://galaxy.ansible.com/ui/search/?keywords=cloud"
36+
database:
37+
label: Database
38+
link: "https://galaxy.ansible.com/ui/search/?keywords=database"
39+
monitoring:
40+
label: Monitoring
41+
link: "https://galaxy.ansible.com/ui/search/?keywords=monitoring"
42+
packaging:
43+
label: Packaging
44+
link: "https://galaxy.ansible.com/ui/search/?keywords=packaging"
45+
apb:
46+
label: Playbook bundles
47+
link: "https://galaxy.ansible.com/ui/search/?keywords=apb"
48+
security:
49+
label: Security
50+
link: "https://galaxy.ansible.com/ui/search/?keywords=security"
51+
web:
52+
label: Web
53+
link: "https://galaxy.ansible.com/ui/search/?keywords=web"

data/pages.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ community_docs:
5151
collections:
5252
title: Ansible collections
5353
intro: Collections are a distribution format for Ansible content that can include playbooks, roles, modules, and plugins.
54-
redirect: The page you are looking for is no longer available because the plugin or module has been added to a collection. As a result the documentation for that plugin or module has moved. Visit one of the following links to find the documentation you are looking for. Please also consider updating your bookmarks.
5554
### platform.html
5655
platform:
5756
title: Red Hat Ansible Automation Platform

templates/collections.html

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,62 @@ <h2>{{ pages.collections.title }}</h2>
1414
</div>
1515
</div>
1616
<div class="width-12-12 width-12-12-m">
17-
<p>{{ pages.collections.redirect }}</p>
17+
<p>{{ collections.redirect }}</p>
1818
<ul class="fa-ul">
1919
<li>
2020
<span class="fa-li"><i class="fas fa-book"></i></span>
21-
<a href="{{ index.quicklinks.collection_index.link }}" target="_blank">{{ index.quicklinks.collection_index.label }}</a>
21+
<a href="{{ collections.links.collection_index.link }}" target="_blank">{{ collections.links.collection_index.label }}</a>
2222
</li>
2323
<li>
2424
<span class="fa-li"><i class="fas fa-book"></i></span>
25-
<a href="{{ index.quicklinks.module_index.link }}" target="_blank">{{ index.quicklinks.module_index.label }}</a>
25+
<a href="{{ collections.links.module_index.link }}" target="_blank">{{ collections.links.module_index.label }}</a>
26+
</li>
27+
<li>
28+
<span class="fa-li"><i class="fas fa-book"></i></span>
29+
<a href="{{ collections.links.builtin_index.link }}" target="_blank">{{ collections.links.builtin_index.label }}</a>
30+
</li>
31+
</ul>
32+
</div>
33+
<div class="width-12-12 width-12-12-m">
34+
<h3>{{ collections.galaxy.title }}</h3>
35+
<p>{{ collections.galaxy.intro }}&nbsp;<a href="{{ collections.galaxy.search.link }}" target="_blank">{{ collections.galaxy.search.label }}</a></p>
36+
<p>{{ collections.galaxy.keywords }}</p>
37+
</div>
38+
<div class="width-6-12 width-12-12-m">
39+
<ul class="fa-ul">
40+
<li>
41+
<a href="{{ collections.galaxy.links.system.link }}" target="_blank">{{ collections.galaxy.links.system.label}}</a>
42+
</li>
43+
<li>
44+
<a href="{{ collections.galaxy.links.development.link }}" target="_blank">{{ collections.galaxy.links.development.label}}</a>
45+
</li>
46+
<li>
47+
<a href="{{ collections.galaxy.links.networking.link }}" target="_blank">{{ collections.galaxy.links.networking.label}}</a>
48+
</li>
49+
<li>
50+
<a href="{{ collections.galaxy.links.cloud.link }}" target="_blank">{{ collections.galaxy.links.cloud.label}}</a>
51+
</li>
52+
<li>
53+
<a href="{{ collections.galaxy.links.database.link }}" target="_blank">{{ collections.galaxy.links.database.label}}</a>
54+
</li>
55+
</ul>
56+
</div>
57+
<div class="width-6-12 width-12-12-m">
58+
<ul class="fa-ul">
59+
<li>
60+
<a href="{{ collections.galaxy.links.monitoring.link }}" target="_blank">{{ collections.galaxy.links.monitoring.label}}</a>
61+
</li>
62+
<li>
63+
<a href="{{ collections.galaxy.links.packaging.link }}" target="_blank">{{ collections.galaxy.links.packaging.label}}</a>
64+
</li>
65+
<li>
66+
<a href="{{ collections.galaxy.links.apb.link }}" target="_blank">{{ collections.galaxy.links.apb.label}}</a>
67+
</li>
68+
<li>
69+
<a href="{{ collections.galaxy.links.security.link }}" target="_blank">{{ collections.galaxy.links.security.label}}</a>
70+
</li>
71+
<li>
72+
<a href="{{ collections.galaxy.links.web.link }}" target="_blank">{{ collections.galaxy.links.web.label}}</a>
2673
</li>
2774
</ul>
2875
</div>

0 commit comments

Comments
 (0)