From e4a0b22e3c2e61debdce1feccf4fb1b255abff52 Mon Sep 17 00:00:00 2001 From: Girija Soni Date: Fri, 26 Jul 2024 16:33:46 +0530 Subject: [PATCH] Fixes #37342 - Update foreman docs and fix specify matcher documentation --- app/views/ansible_roles/index.html.erb | 2 +- app/views/ansible_roles/welcome.html.erb | 2 +- app/views/ansible_variables/_fields.erb | 2 +- app/views/ansible_variables/index.html.erb | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/ansible_roles/index.html.erb b/app/views/ansible_roles/index.html.erb index def0fd832..dcb787662 100644 --- a/app/views/ansible_roles/index.html.erb +++ b/app/views/ansible_roles/index.html.erb @@ -1,7 +1,7 @@ <% title _("Ansible Roles") %> <% title_actions ansible_proxy_import(hash_for_import_ansible_roles_path), - documentation_button('#4.1ImportingRoles', :root_url => ansible_doc_url) %> + documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible') %> diff --git a/app/views/ansible_roles/welcome.html.erb b/app/views/ansible_roles/welcome.html.erb index fd2011862..36d73e3d9 100644 --- a/app/views/ansible_roles/welcome.html.erb +++ b/app/views/ansible_roles/welcome.html.erb @@ -7,7 +7,7 @@

<%= _('No Ansible Roles were found in Foreman. If you want to assign roles to your hosts, you have to import them first.').html_safe %>

-

<%= link_to(_('Learn more about this in the documentation.'), documentation_url('#4.1ImportingRoles', :root_url => ansible_doc_url), target: '_blank') %>

+

<%= link_to(_('Learn more about this in the documentation.'), documentation_url('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible'), target: '_blank') %>

<%= ansible_proxy_import(hash_for_import_ansible_roles_path) %>
diff --git a/app/views/ansible_variables/_fields.erb b/app/views/ansible_variables/_fields.erb index 7498ba991..05d1c6bce 100644 --- a/app/views/ansible_variables/_fields.erb +++ b/app/views/ansible_variables/_fields.erb @@ -65,7 +65,7 @@
-

<%= _("Specify Matchers") %> <%= documentation_button('4.2.6SmartMatchers') %>

+

<%= _("Specify Matchers") %> <%= documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Overriding_Ansible_Variables_in_foreman_ansible') %>

<%= render 'lookup_keys/values', :f => f, :is_param => false %>
diff --git a/app/views/ansible_variables/index.html.erb b/app/views/ansible_variables/index.html.erb index fb345fd85..41b97312f 100644 --- a/app/views/ansible_variables/index.html.erb +++ b/app/views/ansible_variables/index.html.erb @@ -2,8 +2,7 @@ <%= stylesheet 'foreman_ansible/foreman-ansible' %> <%= title_actions display_link_if_authorized(_('New Ansible Variable'), hash_for_new_ansible_variable_path, :class => "btn btn-default no-float"), - documentation_button('#4.3Variables', :root_url => ansible_doc_url) - %> + documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible') %>