Skip to content

Commit 778befd

Browse files
committed
Switch manual links to point to docs
1 parent 875f7eb commit 778befd

5 files changed

Lines changed: 15 additions & 6 deletions

File tree

app/views/foreman_puppet/config_groups/welcome.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
:iconType => 'fa',
99
:header => _('Config Groups'),
1010
:description => description,
11-
:documentation => { :url => documentation_url("using-config-groups") },
11+
:documentation => { :url => documentation_url("Managing_Configurations_Puppet", type: 'docs', chapter: 'creating-a-puppet-config-group_managing-configurations-puppet') },
1212
:action => action
1313
}) %>

app/views/foreman_puppet/puppetclass_lookup_keys/index.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<% title _("Smart Class Parameters") %>
2+
<%# TODO: What to do with this %>
23
<% title_actions documentation_button('4.2.5ParameterizedClasses') %>
34
<table class="<%= table_css_classes 'table-fixed' %>">
45
<thead>

app/views/foreman_puppet/puppetclass_lookup_keys/welcome.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
:iconType => 'fa',
88
:header => _('Smart Class Parameters'),
99
:description => description,
10-
:documentation => { :url => documentation_url("4.2.5SmartMatchers") },
10+
:documentation => { :url => documentation_url('Managing_Configurations_Puppet', type: 'docs', chapter: 'Configuring_Puppet_Smart_Class_Parameters_managing-configurations-puppet') },
1111
}) %>

app/views/foreman_puppet/puppetclasses/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<% title _("Puppet Classes") %>
22

33
<% title_actions import_proxy_select(hash_for_import_environments_puppetclasses_path.merge(engine: foreman_puppet)),
4-
documentation_button('4.2.2Classes') %>
4+
documentation_button('Managing_Configurations_Puppet', type: 'docs', chapter: 'Importing_Puppet_Classes_and_Environments_managing-configurations-puppet') %>
55

66
<table class="<%= table_css_classes 'table-fixed' %>">
77
<thead>

webpack/src/Components/Environments/Welcome.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33
import { FormattedMessage } from 'react-intl';
44
import { translate as __ } from 'foremanReact/common/I18n';
55
import EmptyState from 'foremanReact/components/common/EmptyState';
6-
import { foremanUrl, getManualURL } from 'foremanReact/common/helpers';
6+
import { foremanUrl, getDocsURL } from 'foremanReact/common/helpers';
77

88
export const WelcomeEnv = ({ canCreate }) => {
99
const action = canCreate && {
@@ -23,7 +23,10 @@ export const WelcomeEnv = ({ canCreate }) => {
2323
puppetClassesLinkToDocs: (
2424
<a
2525
target="_blank"
26-
href={getManualURL('4.2.2Classes')}
26+
href={getDocsURL(
27+
'Managing_Configurations_Puppet',
28+
'Importing_Puppet_Classes_and_Environments_managing-configurations-puppet'
29+
)}
2730
rel="noreferrer"
2831
>
2932
{__('Puppet classes')}
@@ -39,7 +42,12 @@ export const WelcomeEnv = ({ canCreate }) => {
3942
iconType="fa"
4043
header={__('Puppet Environments')}
4144
description={description}
42-
documentation={{ url: getManualURL('4.2.1Environments') }}
45+
documentation={{
46+
url: getDocsURL(
47+
'Managing_Configurations_Puppet',
48+
'Creating_a_Custom_Puppet_Environment_managing-configurations-puppet'
49+
),
50+
}}
4351
action={action}
4452
/>
4553
);

0 commit comments

Comments
 (0)