|
48 | 48 |
|
49 | 49 | unsupported_versions_serverless = [];
|
50 | 50 |
|
| 51 | + unsupported_versions_pipelines = []; |
| 52 | + |
51 | 53 | unsupported_versions_gitops = [];
|
52 | 54 |
|
53 | 55 | 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"];
|
|
102 | 104 |
|
103 | 105 | <% end %>
|
104 | 106 |
|
| 107 | + |
| 108 | + <% if ((unsupported_versions_pipelines.include? version) && (distro_key == "openshift-pipelines")) %> |
| 109 | + |
| 110 | + <span> |
| 111 | + <div class="alert alert-danger" role="alert" id="support-alert"> |
| 112 | + <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/pipelines/latest/about/understanding-openshift-pipelines.html" style="color: #545454 !important" class="link-primary">latest Pipelines docs</a>. |
| 113 | + </div> |
| 114 | + </span> |
| 115 | + |
| 116 | + <% end %> |
| 117 | + |
| 118 | + |
105 | 119 | <% if ((unsupported_versions_gitops.include? version) && (distro_key == "openshift-gitops")) %>
|
106 | 120 |
|
107 | 121 | <span>
|
|
189 | 203 | <option value="1.29">1.29</option>
|
190 | 204 | <option value="1.28">1.28</option>
|
191 | 205 | </select>
|
| 206 | + <% elsif (distro_key == "openshift-pipelines") %> |
| 207 | + <a href="https://docs.openshift.com/pipelines/<%= version %>/about/understanding-openshift-pipelines.html"> |
| 208 | + <%= distro %> |
| 209 | + </a> |
| 210 | + <select id="version-selector" onchange="versionSelector(this);"> |
| 211 | + <option value="1.11">1.11</option> |
| 212 | + <option value="1.10">1.10</option> |
| 213 | + </select> |
192 | 214 | <% elsif (distro_key == "openshift-gitops") %>
|
193 | 215 | <a href="https://docs.openshift.com/gitops/<%= version %>/gitops-release-notes.html">
|
194 | 216 | <%= distro %>
|
|
236 | 258 | <li class="hidden-xs active">
|
237 | 259 | <%= breadcrumb_topic %>
|
238 | 260 | </li>
|
239 |
| - <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs" && distro_key != "openshift-serverless" && distro_key != "openshift-gitops") %> |
| 261 | + <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs" && distro_key != "openshift-serverless" && distro_key != "openshift-gitops" && distro_key != "openshift-pipelines") %> |
240 | 262 | <span text-align="right" style="float: right !important">
|
241 | 263 | <a href="https://github.com/openshift/openshift-docs/commits/<%=
|
242 | 264 | ((distro_key == "openshift-enterprise") ? "enterprise-#{version}"
|
|
301 | 323 | </a>
|
302 | 324 | <% end %>
|
303 | 325 | </span>
|
| 326 | + <% elsif (distro_key == "openshift-pipelines") %> |
| 327 | + <span text-align="right" style="float: right !important"> |
| 328 | + <a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-pipelines") ? "pipelines-docs-#{version}" : "pipelines-docs" %>/<%= repo_path %>"> |
| 329 | + <span class="material-icons-outlined" title="Page history">history |
| 330 | + </span> |
| 331 | + </a> |
| 332 | + <% unless (unsupported_versions_pipelines.include? version) %> |
| 333 | + <a href="https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12317820&issuetype=1&components=12332358&priority=4&summary=<%= "[pipelines-docs-#{version}]+Issue+in+file+#{repo_path}"%>"> |
| 334 | + <span class="material-icons-outlined" title="Open an issue">bug_report |
| 335 | + </span> |
| 336 | + </a> |
| 337 | + <a href="javascript: void(0);" onclick="window.print()"> |
| 338 | + <span class="material-icons-outlined" title="Print page (Save as PDF)">picture_as_pdf</span> |
| 339 | + </a> |
| 340 | + <% end %> |
| 341 | + </span> |
304 | 342 | <% elsif (distro_key == "openshift-gitops") %>
|
305 | 343 | <span text-align="right" style="float: right !important">
|
306 | 344 | <a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-gitops") ? "gitops-docs-#{version}" : "gitops-docs" %>/<%= repo_path %>">
|
|
399 | 437 | 'openshift-rosa' : ['docs_rosa'],
|
400 | 438 | 'openshift-acs' : ['docs_acs', version],
|
401 | 439 | 'openshift-serverless' : ['docs_serverless', version],
|
| 440 | + 'openshift-pipelines' : ['docs_pipelines', version], |
402 | 441 | 'openshift-gitops' : ['docs_gitops', version]
|
403 | 442 | };
|
404 | 443 |
|
|
0 commit comments