Skip to content

Commit

Permalink
improve collections page and add galaxy search
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod committed Dec 4, 2024
1 parent 58ac95a commit a10f424
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 4 deletions.
53 changes: 53 additions & 0 deletions data/collections.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
links:
collection_index:
label: Collection index
link: "https://docs.ansible.com/ansible/latest/collections/index.html"
module_index:
label: Modules and plugins index
link: "https://docs.ansible.com/ansible/latest/collections/all_plugins.html"
builtin_index:
label: Index of all modules and plugins contained in ansible-core
link: "https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html"
redirect: >-
Ansible plugins and modules are available from collections.
If you are looking for documentation related to a plugin or module, please try one of the following links.
If you were redirected to this page from an older version of the Ansible documentation, please also consider updating your bookmarks.
galaxy:
title: Ansible Galaxy
intro: You can also find lots of collections
search:
label: by searching on Ansible Galaxy.
link: "https://galaxy.ansible.com/search"
keywords: >-
Use these popular search keywords to find tips and tools to automate everyday tasks, from provisioning infrastructure to deploying applications.
links:
system:
label: System
link: "https://galaxy.ansible.com/ui/search/?keywords=system"
development:
label: Development
link: "https://galaxy.ansible.com/ui/search/?keywords=development"
networking:
label: Networking
link: "https://galaxy.ansible.com/ui/search/?keywords=networking"
cloud:
label: Cloud
link: "https://galaxy.ansible.com/ui/search/?keywords=cloud"
database:
label: Database
link: "https://galaxy.ansible.com/ui/search/?keywords=database"
monitoring:
label: Monitoring
link: "https://galaxy.ansible.com/ui/search/?keywords=monitoring"
packaging:
label: Packaging
link: "https://galaxy.ansible.com/ui/search/?keywords=packaging"
apb:
label: Playbook bundles
link: "https://galaxy.ansible.com/ui/search/?keywords=apb"
security:
label: Security
link: "https://galaxy.ansible.com/ui/search/?keywords=security"
web:
label: Web
link: "https://galaxy.ansible.com/ui/search/?keywords=web"
1 change: 0 additions & 1 deletion data/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ community_docs:
collections:
title: Ansible collections
intro: Collections are a distribution format for Ansible content that can include playbooks, roles, modules, and plugins.
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.
### platform.html
platform:
title: Red Hat Ansible Automation Platform
Expand Down
53 changes: 50 additions & 3 deletions templates/collections.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,62 @@ <h2>{{ pages.collections.title }}</h2>
</div>
</div>
<div class="width-12-12 width-12-12-m">
<p>{{ pages.collections.redirect }}</p>
<p>{{ collections.redirect }}</p>
<ul class="fa-ul">
<li>
<span class="fa-li"><i class="fas fa-book"></i></span>
<a href="{{ index.quicklinks.collection_index.link }}" target="_blank">{{ index.quicklinks.collection_index.label }}</a>
<a href="{{ collections.links.collection_index.link }}" target="_blank">{{ collections.links.collection_index.label }}</a>
</li>
<li>
<span class="fa-li"><i class="fas fa-book"></i></span>
<a href="{{ index.quicklinks.module_index.link }}" target="_blank">{{ index.quicklinks.module_index.label }}</a>
<a href="{{ collections.links.module_index.link }}" target="_blank">{{ collections.links.module_index.label }}</a>
</li>
<li>
<span class="fa-li"><i class="fas fa-book"></i></span>
<a href="{{ collections.links.builtin_index.link }}" target="_blank">{{ collections.links.builtin_index.label }}</a>
</li>
</ul>
</div>
<div class="width-12-12 width-12-12-m">
<h3>{{ collections.galaxy.title }}</h3>
<p>{{ collections.galaxy.intro }}&nbsp;<a href="{{ collections.galaxy.search.link }}" target="_blank">{{ collections.galaxy.search.label }}</a></p>
<p>{{ collections.galaxy.keywords }}</p>
</div>
<div class="width-6-12 width-12-12-m">
<ul class="fa-ul">
<li>
<a href="{{ collections.galaxy.links.system.link }}" target="_blank">{{ collections.galaxy.links.system.label}}</a>
</li>
<li>
<a href="{{ collections.galaxy.links.development.link }}" target="_blank">{{ collections.galaxy.links.development.label}}</a>
</li>
<li>
<a href="{{ collections.galaxy.links.networking.link }}" target="_blank">{{ collections.galaxy.links.networking.label}}</a>
</li>
<li>
<a href="{{ collections.galaxy.links.cloud.link }}" target="_blank">{{ collections.galaxy.links.cloud.label}}</a>
</li>
<li>
<a href="{{ collections.galaxy.links.database.link }}" target="_blank">{{ collections.galaxy.links.database.label}}</a>
</li>
</ul>
</div>
<div class="width-6-12 width-12-12-m">
<ul class="fa-ul">
<li>
<a href="{{ collections.galaxy.links.monitoring.link }}" target="_blank">{{ collections.galaxy.links.monitoring.label}}</a>
</li>
<li>
<a href="{{ collections.galaxy.links.packaging.link }}" target="_blank">{{ collections.galaxy.links.packaging.label}}</a>
</li>
<li>
<a href="{{ collections.galaxy.links.apb.link }}" target="_blank">{{ collections.galaxy.links.apb.label}}</a>
</li>
<li>
<a href="{{ collections.galaxy.links.security.link }}" target="_blank">{{ collections.galaxy.links.security.label}}</a>
</li>
<li>
<a href="{{ collections.galaxy.links.web.link }}" target="_blank">{{ collections.galaxy.links.web.label}}</a>
</li>
</ul>
</div>
Expand Down

0 comments on commit a10f424

Please sign in to comment.