|
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>
|
|
191 | 205 | <option value="1.29">1.29</option>
|
192 | 206 | <option value="1.28">1.28</option>
|
193 | 207 | </select>
|
| 208 | + <% elsif (distro_key == "openshift-pipelines") %> |
| 209 | + <a href="https://docs.openshift.com/pipelines/<%= version %>/about/understanding-openshift-pipelines.html"> |
| 210 | + <%= distro %> |
| 211 | + </a> |
| 212 | + <select id="version-selector" onchange="versionSelector(this);"> |
| 213 | + <option value="1.11">1.11</option> |
| 214 | + <option value="1.10">1.10</option> |
| 215 | + </select> |
194 | 216 | <% elsif (distro_key == "openshift-gitops") %>
|
195 | 217 | <a href="https://docs.openshift.com/gitops/<%= version %>/gitops-release-notes.html">
|
196 | 218 | <%= distro %>
|
|
238 | 260 | <li class="hidden-xs active">
|
239 | 261 | <%= breadcrumb_topic %>
|
240 | 262 | </li>
|
241 |
| - <% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs" && distro_key != "openshift-serverless" && distro_key != "openshift-gitops") %> |
| 263 | + <% 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") %> |
242 | 264 | <span text-align="right" style="float: right !important">
|
243 | 265 | <a href="https://github.com/openshift/openshift-docs/commits/<%=
|
244 | 266 | ((distro_key == "openshift-enterprise") ? "enterprise-#{version}"
|
|
303 | 325 | </a>
|
304 | 326 | <% end %>
|
305 | 327 | </span>
|
| 328 | + <% elsif (distro_key == "openshift-pipelines") %> |
| 329 | + <span text-align="right" style="float: right !important"> |
| 330 | + <a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-pipelines") ? "pipelines-docs-#{version}" : "pipelines-docs" %>/<%= repo_path %>"> |
| 331 | + <span class="material-icons-outlined" title="Page history">history |
| 332 | + </span> |
| 333 | + </a> |
| 334 | + <% unless (unsupported_versions_pipelines.include? version) %> |
| 335 | + <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}"%>"> |
| 336 | + <span class="material-icons-outlined" title="Open an issue">bug_report |
| 337 | + </span> |
| 338 | + </a> |
| 339 | + <a href="javascript: void(0);" onclick="window.print()"> |
| 340 | + <span class="material-icons-outlined" title="Print page (Save as PDF)">picture_as_pdf</span> |
| 341 | + </a> |
| 342 | + <% end %> |
| 343 | + </span> |
306 | 344 | <% elsif (distro_key == "openshift-gitops") %>
|
307 | 345 | <span text-align="right" style="float: right !important">
|
308 | 346 | <a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-gitops") ? "gitops-docs-#{version}" : "gitops-docs" %>/<%= repo_path %>">
|
|
401 | 439 | 'openshift-rosa' : ['docs_rosa'],
|
402 | 440 | 'openshift-acs' : ['docs_acs', version],
|
403 | 441 | 'openshift-serverless' : ['docs_serverless', version],
|
| 442 | + 'openshift-pipelines' : ['docs_pipelines', version], |
404 | 443 | 'openshift-gitops' : ['docs_gitops', version]
|
405 | 444 | };
|
406 | 445 |
|
|
0 commit comments