Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Update index page links based on journeys (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandra McCann <[email protected]>
  • Loading branch information
oraNod and samccann authored Mar 7, 2023
1 parent 56d2402 commit 7e78371
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 77 deletions.
10 changes: 0 additions & 10 deletions data/base.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
site_title: Ansible Documentation
site_description: Ansible Documentation
site_author: Ansible Community
ansible_version: 7
pages:
user: user.html
developer: developer.html
maintainer: maintainer.html
collections: collections.html
community: community.html
core: core.html
ecosystem: ecosystem.html
index: index.html
27 changes: 21 additions & 6 deletions data/links.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
core_docs:
index: "https://docs.ansible.com/ansible-core/devel/index.html"
pkg_docs:
index: "https://docs.ansible.com/ansible/latest/index.html"
start: "https://docs.ansible.com/ansible/latest/getting_started/index.html"
install: "https://docs.ansible.com/ansible/latest/installation_guide/index.html"
collections_index: "https://docs.ansible.com/ansible/latest/collections/all_plugins.html"
inventory_guide: "https://docs.ansible.com/ansible/latest/inventory_guide/index.html"
playbook_guide: "https://docs.ansible.com/ansible/latest/playbook_guide/index.html"
collections_index: "https://docs.ansible.com/ansible/latest/collections/all_plugins.html"
developer_guide: "https://docs.ansible.com/ansible/latest/dev_guide/index.html"
dev_docs:
environment_setup: "https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#environment-setup"
developing_modules: "https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#developing-modules-general"
ansible_architecture: "https://docs.ansible.com/ansible/latest/dev_guide/overview_architecture.html"
novice_actions:
learn: "https://docs.ansible.com/ansible/latest/index.html"
setup: ""
install: "https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-and-upgrading-ansible"
start: "https://docs.ansible.com/ansible/latest/getting_started/index.html"
user_actions:
automate: "https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_intro.html#playbook-syntax"
evaluate_plugins: "https://docs.ansible.com/ansible/latest/module_plugin_guide/modules_intro.html"
build_inventory: "https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html"
developer_actions:
setup: "https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#environment-setup"
guidelines: "https://docs.ansible.com/ansible/latest/community/getting_started.html"
start: "https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html"
learn: "https://docs.ansible.com/ansible/latest/dev_guide/overview_architecture.html"
maintainer_actions:
overview: "https://docs.ansible.com/ansible/latest/community/contributor_path.html"
learn: "https://docs.ansible.com/ansible/latest/community/maintainers_guidelines.html"
join: "https://docs.ansible.com/ansible/latest/community/maintainers_guidelines.html#weekly-community-matrix-irc-meetings"
project_doc_home:
als: "https://als.readthedocs.io/en/latest/"
awx: "https://github.com/ansible/awx"
Expand Down
88 changes: 52 additions & 36 deletions data/pages.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,67 @@
# Latest Ansible package version.
ansible_pkg:
announce: Ansible 7 is now available
pip_install: pip install ansible
# Base docsite page names.
site:
index: index.html
user: user.html
developer: developer.html
maintainer: maintainer.html
collections: collections.html
community: community.html
core: core.html
ecosystem: ecosystem.html
# Content for the index page.
index:
welcome: Welcome to Ansible documentation
about_ansible: Ansible offers powerful and flexible automation that is simple, decentralized, and easy.
#Ansible novice
# Ansible novice
novice_actions:
#Labels provide meaningful descriptions of elements for accessibility purposes.
action_label: Button group that links to documentation for new Ansible users.
action_one: Understand the fundamentals of Ansible automation
action_two: Set up an Ansible automation project
action_three: Write your first playbook in a few easy steps
#Ansible installation
install_action: Go to the installation guide
#Ansible user
# Labels provide meaningful descriptions of elements for accessibility purposes.
label: Button group that links to documentation for new Ansible users.
learn: Understand the fundamentals of Ansible automation
install: Install the Ansible package
start: Write your first playbook in a few easy steps
# Ansible installation
install_action: Find more installation options
# Ansible user
user_heading: Ansible users
user_base_body: Ansible playbooks are blueprints for automating software deployment and system configuration as well as orchestrating complex operations.
user_base_actions:
#Labels provide meaningful descriptions of elements for accessibility purposes.
action_label: Button group that links to base Ansible user documentation.
action_one: Start writing Ansible playbooks
action_two: Learn which plugins to use for your tasks
action_three: Build inventory files to manage multiple hosts
user_body: Ansible playbooks are blueprints for automating software deployment and system configuration as well as orchestrating complex operations.
user_actions:
# Labels provide meaningful descriptions of elements for accessibility purposes.
label: Button group that links to base Ansible user documentation.
automate: Start writing Ansible playbooks
evaluate_plugins: Learn which plugins to use for your tasks
build_inventory: Build inventory files to manage multiple hosts
user_resources_heading: User resources
user_resources_body: Structure your project with roles, improve content quality, re-use existing automation, and more.
user_resources_action: Find user resources
#Ansible developer
user_resources_action: Find more resources for Ansible users
# Ansible developer
developer_heading: Ansible developers
developer_base_body: Ansible is open source. You can add code that fixes bugs, implements new features, or extends the benefits of simple, agentless automation.
developer_base_actions:
#Labels provide meaningful descriptions of elements for accessibility purposes.
action_label: Button group that links to base Ansible developer documentation.
action_one: Set up your development environment
action_two: Review the Ansible contributor guidelines
action_three: Write custom modules or plugins
developer_body: Ansible is open source. You can add code that fixes bugs, implements new features, or extends the benefits of simple, agentless automation.
developer_actions:
# Labels provide meaningful descriptions of elements for accessibility purposes.
label: Button group that links to base Ansible developer documentation.
setup: Set up your development environment
guidelines: Review the Ansible contributor guidelines
start: Write custom modules or plugins
developer_resources_heading: Developer resources
developer_resources_body: Contribute to an Ansible project or collection, run sanity tests, write integration and unit tests, and more.
developer_resources_action: Find developer resources
#Community maintainer
developer_resources_action: Find more resources for developing with Ansible
# Community maintainer
maintainer_heading: Community maintainers
maintainer_base_body: Ansible maintainers are responsible for the ongoing quality of Ansible projects and collections and play a vital role in guiding the direction of the wider community.
maintainer_base_actions:
#Labels provide meaningful descriptions of elements for accessibility purposes.
action_label: Button group that links to base Ansible community maintainer documentation.
action_one: Learn about the Ansible community
action_two: Review and agree to the code of conduct
action_three: Join or start a discussion that interests you
maintainer_body: Ansible maintainers are responsible for the ongoing quality of Ansible projects and collections and play a vital role in guiding the direction of the wider community.
maintainer_actions:
# Labels provide meaningful descriptions of elements for accessibility purposes.
label: Button group that links to base Ansible community maintainer documentation.
overview: Understand Ansible contributor paths
learn: Learn about community maintainer responsibilities
join: Join or start a discussion that interests you
maintainer_resources_heading: Community maintainer resources
maintainer_resources_body: Handle project lifecycles, ensure the health of collections, join the Ansible steering committee, and more.
maintainer_resources_action: Find maintainer resources
maintainer_resources_action: Find more resources for Ansible community maintainers
# Ansible ecosystem page.
ecosystem:
title: Ansible Ecosystem
intro: Projects in the Ansible ecosystem let you expand automation to a virtually unlimited set of use cases.
intro: Projects in the Ansible ecosystem let you expand automation to a virtually unlimited set of use cases.
50 changes: 25 additions & 25 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
<h4>{{ pages.index.welcome }}</h4>
<p class="card-text">{{ pages.index.about_ansible }}</p>
<!--Start novice section-->
<div class="btn-group-vertical" role="group" aria-label="{{ pages.index.novice_actions.action_label }}">
<a class="btn btn-primary" href="{{ links.core_docs.index }}" role="button">{{ pages.index.novice_actions.action_one }}</a>
<a class="btn btn-primary" href="{{ links.core_docs.start }}" role="button">{{ pages.index.novice_actions.action_two }}</a>
<a class="btn btn-primary" href="{{ links.core_docs.install }}" role="button">{{ pages.index.novice_actions.action_three }}</a>
<div class="btn-group-vertical" role="group" aria-label="{{ pages.index.novice_actions.label }}">
<a class="btn btn-primary" href="{{ links.novice_actions.learn }}" role="button">{{ pages.index.novice_actions.learn }}</a>
<a class="btn btn-primary" href="{{ links.novice_actions.install }}" role="button">{{ pages.index.novice_actions.install }}</a>
<a class="btn btn-primary" href="{{ links.novice_actions.start }}" role="button">{{ pages.index.novice_actions.start }}</a>
</div>
</div>
</div>
<!--Ansible version and pip installation clipboard-->
<div class="w-25 p-0">
<div class="card-body">
<h4>Ansible {{ base.ansible_version }} is now available</h4>
<h4>{{ pages.ansible_pkg.announce }}</h4>
<div class="clipboard">
<pre><code id="clip">pip install ansible</code><button class="btn" data-clipboard-action="copy" data-clipboard-target="#clip"> <i class='far fa-clipboard'></i></button></pre>
<pre><code id="clip">{{ pages.ansible_pkg.pip_install }}</code><button class="btn" data-clipboard-action="copy" data-clipboard-target="#clip"> <i class='far fa-clipboard'></i></button></pre>
</div>
<a class="btn btn-primary" href="{{ links.core_docs.install }}" role="button">{{ pages.index.install_action }}</a>
<a class="btn btn-primary" href="{{ links.pkg_docs.install }}" role="button">{{ pages.index.install_action }}</a>
</div>
</div>
</div>
Expand All @@ -31,19 +31,19 @@ <h4>Ansible {{ base.ansible_version }} is now available</h4>
<div class="w-50 p-0">
<div class="card-body">
<h5>{{ pages.index.user_heading }} <i class="fas fa-cogs"></i></h5>
<p class="card-text">{{ pages.index.user_base_body }}</p>
<div class="btn-group-vertical" role="group" aria-label="{{ pages.index.user_base_actions.action_label }}">
<a class="btn btn-primary" href="{{ links.core_docs.inventory_guide }}" role="button">{{ pages.index.user_base_actions.action_one }}</a>
<a class="btn btn-primary" href="{{ links.core_docs.playbook_guide }}" role="button">{{ pages.index.user_base_actions.action_two }}</a>
<a class="btn btn-primary" href="{{ links.core_docs.collections_index }}" role="button">{{ pages.index.user_base_actions.action_three }}</a>
<p class="card-text">{{ pages.index.user_body }}</p>
<div class="btn-group-vertical" role="group" aria-label="{{ pages.index.user_actions.label }}">
<a class="btn btn-primary" href="{{ links.user_actions.automate }}" role="button">{{ pages.index.user_actions.automate }}</a>
<a class="btn btn-primary" href="{{ links.user_actions.evaluate_plugins }}" role="button">{{ pages.index.user_actions.evaluate_plugins }}</a>
<a class="btn btn-primary" href="{{ links.user_actions.build_inventory }}" role="button">{{ pages.index.user_actions.build_inventory }}</a>
</div>
</div>
</div>
<div class="w-25 p-0">
<div class="card-body">
<h5>{{ pages.index.user_resources_heading }}</h5>
<p class="card-text">{{ pages.index.user_resources_body }}</p>
<a class="btn btn-primary" href="{{ base.pages.user }}" role="button">{{ pages.index.user_resources_action }}</a>
<a class="btn btn-primary" href="{{ pages.site.user }}" role="button">{{ pages.index.user_resources_action }}</a>
</div>
</div>
</div>
Expand All @@ -52,19 +52,19 @@ <h5>{{ pages.index.user_resources_heading }}</h5>
<div class="w-50 p-0">
<div class="card-body">
<h5>{{ pages.index.developer_heading }} <i class="fas fa-code"></i></h5>
<p class="card-text">{{ pages.index.developer_base_body }}</p>
<div class="btn-group-vertical" role="group" aria-label="{{ pages.index.developer_base_actions.action_label }}">
<a class="btn btn-primary" href="{{ links.dev_docs.ansible_architecture }}" role="button">{{ pages.index.developer_base_actions.action_one }}</a>
<a class="btn btn-primary" href="{{ links.dev_docs.environment_setup }}" role="button">{{ pages.index.developer_base_actions.action_two }}</a>
<a class="btn btn-primary" href="{{ links.dev_docs.developing_modules }}" role="button">{{ pages.index.developer_base_actions.action_three }}</a>
<p class="card-text">{{ pages.index.developer_body }}</p>
<div class="btn-group-vertical" role="group" aria-label="{{ pages.index.developer_actions.label }}">
<a class="btn btn-primary" href="{{ links.developer_actions.setup }}" role="button">{{ pages.index.developer_actions.setup }}</a>
<a class="btn btn-primary" href="{{ links.developer_actions.guidelines }}" role="button">{{ pages.index.developer_actions.guidelines }}</a>
<a class="btn btn-primary" href="{{ links.developer_actions.start }}" role="button">{{ pages.index.developer_actions.start }}</a>
</div>
</div>
</div>
<div class="w-25 p-0">
<div class="card-body">
<h5>{{ pages.index.developer_resources_heading }}</h5>
<p class="card-text">{{ pages.index.developer_resources_body }}</p>
<a class="btn btn-primary" href="{{ base.pages.developer }}" role="button">{{ pages.index.developer_resources_action }}</a>
<a class="btn btn-primary" href="{{ pages.site.developer }}" role="button">{{ pages.index.developer_resources_action }}</a>
</div>
</div>
</div>
Expand All @@ -73,19 +73,19 @@ <h5>{{ pages.index.developer_resources_heading }}</h5>
<div class="w-50 p-0">
<div class="card-body">
<h5>{{ pages.index.maintainer_heading }} <i class="fas fa-project-diagram"></i></h5>
<p class="card-text">{{ pages.index.maintainer_base_body }}</p>
<div class="btn-group-vertical" role="group" aria-label="{{ pages.index.maintainer_base_actions.action_label }}">
<a class="btn btn-primary" href="https://docs.ansible.com/ansible/latest/inventory_guide/index.html" role="button">{{ pages.index.maintainer_base_actions.action_one }}</a>
<a class="btn btn-primary" href="https://docs.ansible.com/ansible/latest/playbook_guide/index.html" role="button">{{ pages.index.maintainer_base_actions.action_two }}</a>
<a class="btn btn-primary" href="https://docs.ansible.com/ansible/latest/collections/all_plugins.html" role="button">{{ pages.index.maintainer_base_actions.action_three }}</a>
<p class="card-text">{{ pages.index.maintainer_body }}</p>
<div class="btn-group-vertical" role="group" aria-label="{{ pages.index.maintainer_actions.label }}">
<a class="btn btn-primary" href="{{ links.maintainer_actions.overview }}" role="button">{{ pages.index.maintainer_actions.overview}}</a>
<a class="btn btn-primary" href="{{ links.maintainer_actions.learn }}" role="button">{{ pages.index.maintainer_actions.learn }}</a>
<a class="btn btn-primary" href="{{ links.maintainer_actions.join }}" role="button">{{ pages.index.maintainer_actions.join }}</a>
</div>
</div>
</div>
<div class="w-25 p-0">
<div class="card-body">
<h5>{{ pages.index.maintainer_resources_heading }}</h5>
<p class="card-text">{{ pages.index.maintainer_resources_body }}</p>
<a class="btn btn-primary" href="{{ base.pages.maintainer }}" role="button">{{ pages.index.maintainer_resources_action }}</a>
<a class="btn btn-primary" href="{{ pages.site.maintainer }}" role="button">{{ pages.index.maintainer_resources_action }}</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 7e78371

Please sign in to comment.