Skip to content

Commit 05eecef

Browse files
Merge pull request #64712 from agantony/ROX18476-main
2 parents e3aa332 + 9eca826 commit 05eecef

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.s2i/httpd-cfg/01-commercial.conf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ AddType text/vtt vtt
138138
# ACS Redirects to go to the latest version - change here when a new version drops
139139
# it should probably be best to combine the next few lines in one reg exp but for clarity keeping them separate
140140
# the first one redirects
141-
RewriteRule ^acs/?$ /acs/4.1/welcome/index.html [R=301]
141+
RewriteRule ^acs/?$ /acs/4.2/welcome/index.html [R=301]
142142
# redirect to the latest release notes
143-
RewriteRule ^acs/release_notes/?$ /acs/4.1/release_notes/41-release-notes.html [R=301,NE]
143+
RewriteRule ^acs/release_notes/?$ /acs/4.2/release_notes/42-release-notes.html [R=301,NE]
144144
# redirect from ACS CLoud Service page
145-
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.1/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
146-
RewriteRule ^acs/(\D.*)$ /acs/4.1/$1 [NE,R=301]
147-
RewriteRule ^acs/(3\.65|3\.66|3\.67|3\.68|3\.69|3\.70|3\.71|3\.72|3\.73|3\.74|4\.0|4\.1)/?$ /acs/$1/welcome/index.html [L,R=301]
145+
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.2/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
146+
RewriteRule ^acs/(\D.*)$ /acs/4.2/$1 [NE,R=301]
147+
RewriteRule ^acs/(3\.65|3\.66|3\.67|3\.68|3\.69|3\.70|3\.71|3\.72|3\.73|3\.74|4\.0|4\.1|4\.2)/?$ /acs/$1/welcome/index.html [L,R=301]
148148
#redirect for 4.0 Manage vulneribility page
149149
RewriteRule ^(acs/(?:4\.0/)?)?operating/manage-vulnerabilities\.html$ /acs/4.0/operating/manage-vulnerabilities/vulnerability-management.html [NE,R=301]
150150

_distro_map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ openshift-acs:
277277
rhacs-docs-4.1:
278278
name: '4.1'
279279
dir: acs/4.1
280+
rhacs-docs-4.2:
281+
name: '4.2'
282+
dir: acs/4.2
280283
microshift:
281284
name: MicroShift
282285
author: OpenShift Documentation Project <[email protected]>

_templates/_page_openshift.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168
<%= distro %>
169169
</a>
170170
<select id="version-selector" onchange="versionSelector(this);">
171+
<option value="4.2">4.2</option>
171172
<option value="4.1">4.1</option>
172173
<option value="4.0">4.0</option>
173174
<option value="3.74">3.74</option>

index-commercial.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ <h2>Red Hat Advanced Cluster Security for Kubernetes</h2>
246246
<div class="btn-group">
247247
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Select version<span class="caret"></span></button>
248248
<ul class="dropdown-menu" role="menu">
249+
<li><a href="acs/4.2/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.2</a></li>
249250
<li><a href="acs/4.1/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.1</a></li>
250251
<li><a href="acs/4.0/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.0</a></li>
251252
<li><a href="acs/3.74/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 3.74</a></li>

0 commit comments

Comments
 (0)