Skip to content

Commit 3a3e73c

Browse files
committed
RHACS docs 4.0 release (main)
1 parent e29cf9c commit 3a3e73c

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

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

Lines changed: 6 additions & 6 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/3.74/welcome/index.html [R=301]
141+
RewriteRule ^acs/?$ /acs/4.0/welcome/index.html [R=301]
142142
# redirect to the latest release notes
143-
RewriteRule ^acs/release_notes/?$ /acs/3.74/release_notes/374-release-notes.html [R=301,NE]
143+
RewriteRule ^acs/release_notes/?$ /acs/4.0/release_notes/40-release-notes.html [R=301,NE]
144144
# redirect from ACS CLoud Service page
145-
RewriteRule ^acs/installing/install-ocp-operator.html /acs/3.74/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
146-
RewriteRule ^acs/(\D.*)$ /acs/3.74/$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)/?$ /acs/$1/welcome/index.html [L,R=301]
145+
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.0/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
146+
RewriteRule ^acs/(\D.*)$ /acs/4.0/$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)/?$ /acs/$1/welcome/index.html [L,R=301]
148148

149149
# this pipeline redirect has to come before the latest kicks in generically
150150
RewriteRule ^container-platform/latest/pipelines/creating-applications-with-cicd-pipelines.html /container-platform/4.7/cicd/pipelines/creating-applications-with-cicd-pipelines.html [NE,R=301]
@@ -183,7 +183,7 @@ AddType text/vtt vtt
183183
# PR https://github.com/openshift/openshift-docs/pull/35208/files for oc-compliance plugin
184184
RewriteRule ^container-platform/4\.8/security/oc_compliance_plug_in/oc-compliance-plug-in-using.html /container-platform/4.8/security/compliance_operator/oc-compliance-plug-in-using.html [NE,R=301]
185185

186-
# Serverless restructuring
186+
# Serverless restructuring
187187
RewriteRule ^container-platform/(4\.9|4\.10|4\.11|4\.12)/serverless/discover/about-serverless.html /container-platform/$1/serverless/about/about-serverless.html [NE,R=302]
188188

189189
RewriteRule ^container-platform/(4\.9|4\.10|4\.11|4\.12)/serverless/develop/serverless-pingsource.html /container-platform/$1/serverless/eventing/event-sources/serverless-pingsource.html [NE,R=302]

_distro_map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ openshift-acs:
258258
rhacs-docs-3.74:
259259
name: '3.74'
260260
dir: acs/3.74
261+
rhacs-docs-4.0:
262+
name: '4.0'
263+
dir: acs/4.0
261264
microshift:
262265
name: MicroShift
263266
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
@@ -143,6 +143,7 @@
143143
<%= distro %>
144144
</a>
145145
<select id="version-selector" onchange="versionSelector(this);">
146+
<option value="4.0">4.0</option>
146147
<option value="3.74">3.74</option>
147148
<option value="3.73">3.73</option>
148149
<option value="3.72">3.72</option>

index-commercial.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ <h2>Red Hat Advanced Cluster Security for Kubernetes</h2>
255255
<div class="btn-group">
256256
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Select version<span class="caret"></span></button>
257257
<ul class="dropdown-menu" role="menu">
258+
<li><a href="acs/4.0/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.0</a></li>
258259
<li><a href="acs/3.74/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 3.74</a></li>
259260
<li><a href="acs/3.73/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 3.73</a></li>
260261
<li><a href="acs/3.72/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 3.72</a></li>

0 commit comments

Comments
 (0)