Skip to content

[RHACS][Docs] ROX-29156: Update ACS redirects and version selector for RHACS 4.8 release #94996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .s2i/httpd-cfg/01-commercial.conf
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ AddType text/vtt vtt
# ACS Redirects to go to the latest version - change here when a new version drops
# it should probably be best to combine the next few lines in one reg exp but for clarity keeping them separate
# the first one redirects
RewriteRule ^acs/?$ /acs/4.7/welcome/index.html [R=301]
RewriteRule ^acs/?$ /acs/4.8/welcome/index.html [R=301]
# redirect to the latest release notes
RewriteRule ^acs/release_notes/?$ /acs/4.7/release_notes/47-release-notes.html [R=301,NE]
RewriteRule ^acs/release_notes/?$ /acs/4.8/release_notes/47-release-notes.html [R=301,NE]
# redirect from ACS CLoud Service page
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.7/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
RewriteRule ^acs/(\D.*)$ /acs/4.7/$1 [NE,R=301]
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|4\.3|4\.4|4\.5|4\.6|4\.7)/?$ /acs/$1/welcome/index.html [L,R=301]
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.8/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
RewriteRule ^acs/(\D.*)$ /acs/4.8/$1 [NE,R=301]
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|4\.3|4\.4|4\.5|4\.6|4\.7|4\.8)/?$ /acs/$1/welcome/index.html [L,R=301]
#redirect for 4.0 Manage vulneribility page
RewriteRule ^(acs/(?:4\.0/)?)?operating/manage-vulnerabilities\.html$ /acs/4.0/operating/manage-vulnerabilities/vulnerability-management.html [NE,R=301]
#redirect for missing 4.3 page
Expand Down
3 changes: 3 additions & 0 deletions _distro_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ openshift-acs:
rhacs-docs-4.7:
name: '4.7'
dir: acs/4.7
rhacs-docs-4.8:
name: '4.8'
dir: acs/4.8
microshift:
name: Red Hat build of MicroShift
author: OpenShift Documentation Project <openshift-docs@redhat.com>
Expand Down
1 change: 1 addition & 0 deletions _templates/_page_openshift.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@
<%= distro %>
</a>
<select id="version-selector" onchange="versionSelector(this);">
<option value="4.8">4.8</option>
<option value="4.7">4.7</option>
<option value="4.6">4.6</option>
<option value="4.5">4.5</option>
Expand Down
1 change: 1 addition & 0 deletions index-commercial.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ <h2>Red Hat Advanced Cluster Security for Kubernetes</h2>
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Select version<span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<li><a href="acs/4.8/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.8</a></li>
<li><a href="acs/4.7/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.7</a></li>
<li><a href="acs/4.6/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.6</a></li>
<li><a href="acs/4.5/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.5</a></li>
Expand Down