|
47 | 47 |
|
48 | 48 | unsupported_versions_serverless = [];
|
49 | 49 |
|
| 50 | + unsupported_versions_gitops = []; |
| 51 | + |
50 | 52 | unsupported_versions_origin = ["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "3.11", "4.1", "4.2", "4.3", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "4.10", "4.11", "4.12"];
|
51 | 53 |
|
52 | 54 | %>
|
|
99 | 101 |
|
100 | 102 | <% end %>
|
101 | 103 |
|
| 104 | + <% if ((unsupported_versions_gitops.include? version) && (distro_key == "openshift-gitops")) %> |
| 105 | + |
| 106 | + <span> |
| 107 | + <div class="alert alert-danger" role="alert" id="support-alert"> |
| 108 | + <strong>You are viewing documentation for a release that is no longer maintained.</strong> To view the documentation for the most recent version, see the <a href="https://docs.openshift.com/gitops/latest/gitops-release-notes.html" style="color: #545454 !important" class="link-primary">latest GitOps docs</a>. |
| 109 | + </div> |
| 110 | + </span> |
| 111 | + |
| 112 | + <% end %> |
| 113 | + |
102 | 114 | <% if ((unsupported_versions_origin.include? version) && (distro_key == "openshift-origin")) %>
|
103 | 115 |
|
104 | 116 | <span>
|
|
176 | 188 | <option value="1.29">1.29</option>
|
177 | 189 | <option value="1.28">1.28</option>
|
178 | 190 | </select>
|
| 191 | + <% elsif (distro_key == "openshift-gitops") %> |
| 192 | + <a href="https://docs.openshift.com/gitops/<%= version %>/gitops-release-notes.html"> |
| 193 | + <%= distro %> |
| 194 | + </a> |
| 195 | + <select id="version-selector" onchange="versionSelector(this);"> |
| 196 | + <option value="1.9">1.9</option> |
| 197 | + <option value="1.8">1.8</option> |
| 198 | + </select> |
179 | 199 | <% elsif (distro_key == "openshift-origin") %>
|
180 | 200 | <a href="https://docs.okd.io/<%= version %>/welcome/index.html">
|
181 | 201 | <%= distro %>
|
|
208 | 228 | <li class="hidden-xs active">
|
209 | 229 | <%= breadcrumb_topic %>
|
210 | 230 | </li>
|
211 |
| - <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs" && distro_key != "openshift-serverless") %> |
| 231 | + <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs" && distro_key != "openshift-serverless" && distro_key != "openshift-gitops") %> |
212 | 232 | <span text-align="right" style="float: right !important">
|
213 | 233 | <a href="https://github.com/openshift/openshift-docs/commits/<%=
|
214 | 234 | ((distro_key == "openshift-enterprise") ? "enterprise-#{version}"
|
|
272 | 292 | <% end %>
|
273 | 293 | </span>
|
274 | 294 | <% end %>
|
| 295 | + <% elsif (distro_key == "openshift-gitops") %> |
| 296 | + <span text-align="right" style="float: right !important"> |
| 297 | + <a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-gitops") ? "gitops-docs-#{version}" : "gitops-docs" %>/<%= repo_path %>"> |
| 298 | + <span class="material-icons-outlined" title="Page history">history |
| 299 | + </span> |
| 300 | + </a> |
| 301 | + <% unless (unsupported_versions_gitops.include? version) %> |
| 302 | + <a href="https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12317820&issuetype=1&components=12342156&priority=4&summary=<%= "[gitops-docs-#{version}]+Issue+in+file+#{repo_path}"%>"> |
| 303 | + <span class="material-icons-outlined" title="Open an issue">bug_report |
| 304 | + </span> |
| 305 | + </a> |
| 306 | + <a href="javascript: void(0);" onclick="window.print()"> |
| 307 | + <span class="material-icons-outlined" title="Print page (Save as PDF)">picture_as_pdf</span> |
| 308 | + </a> |
| 309 | + <% end %> |
| 310 | + </span> |
| 311 | + <% end %> |
275 | 312 | </ol>
|
276 | 313 | <div class="row row-offcanvas row-offcanvas-left">
|
277 | 314 | <div class="col-xs-8 col-sm-3 col-md-3 sidebar sidebar-offcanvas hide-for-print">
|
|
351 | 388 | 'openshift-aro' : ['docs_aro', version],
|
352 | 389 | 'openshift-rosa' : ['docs_rosa'],
|
353 | 390 | 'openshift-acs' : ['docs_acs', version],
|
354 |
| - 'openshift-serverless' : ['docs_serverless', version] |
| 391 | + 'openshift-serverless' : ['docs_serverless', version], |
| 392 | + 'openshift-gitops' : ['docs_gitops', version] |
355 | 393 | };
|
356 | 394 |
|
357 | 395 | // only OSD v3 docs have the version variable specified
|
|
0 commit comments