|
13 | 13 | <%= (distro_key == "openshift-dpu") ? '<meta name="robots" content="noindex,nofollow">' : '' %>
|
14 | 14 | <%= ((["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "4.1", "4.2", "4.3", "4.4", "4.5"].include?(version)) && distro_key == "openshift-enterprise") ? '<meta name="googlebot" content="noindex">' : '' %>
|
15 | 15 | <title><%= [topic_title, subgroup_title].compact.join(' - ') %> | <%= group_title %> | <%= distro %> <%= version %></title>
|
16 |
| - <link href="https://assets.openshift.net/content/subdomain.css" rel="stylesheet" type="text/css"> |
17 |
| - <link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/search.css" rel="stylesheet" /> |
18 |
| - <link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/autumn.css" rel="stylesheet" /> |
19 |
| - <link href="https://assets.openshift.net/content/subdomain/touch-icon-precomposed.png" rel="apple-touch-icon-precomposed" type="image/png"> |
20 |
| - <link href="https://assets.openshift.net/content/subdomain/favicon32x32.png" rel="shortcut icon" type="text/css"> |
21 |
| - <link href="https://assets.openshift.net/content/osh-nav-footer.css" rel="stylesheet" type="text/css" media="screen, print" /> |
22 |
| - <link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/docs.css" rel="stylesheet" /> |
| 16 | + <link href="https://assets.openshift.net/content/subdomain.css" rel="stylesheet" type="text/css"/> |
| 17 | + <link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/search.css" rel="stylesheet" media="screen"/> |
| 18 | + <link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/autumn.css" rel="stylesheet" media="screen"/> |
| 19 | + <link href="https://assets.openshift.net/content/subdomain/touch-icon-precomposed.png" rel="apple-touch-icon-precomposed" type="image/png"/> |
| 20 | + <link href="https://assets.openshift.net/content/subdomain/favicon32x32.png" rel="shortcut icon" type="text/css"/> |
| 21 | + <link href="https://assets.openshift.net/content/osh-nav-footer.css" rel="stylesheet" type="text/css" media="screen"/> |
| 22 | + <link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/docs.css" rel="stylesheet" media="screen"/> |
| 23 | + <link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/print.css" rel="stylesheet" type="text/css" media="print"/> |
23 | 24 | <!--[if IE]><link rel="shortcut icon" href="https://assets.openshift.net/content/subdomain/favicon.ico"><![endif]-->
|
24 | 25 | <!-- or, set /favicon.ico for IE10 win -->
|
25 | 26 | <meta content="OpenShift" name="application-name">
|
|
30 | 31 | <script src="//www.redhat.com/dtm.js" type="text/javascript"></script>
|
31 | 32 | <!-- End Adobe DTM -->
|
32 | 33 |
|
33 |
| - <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.min.js"></script> |
34 |
| - |
35 | 34 | <script id="trustarc" src="https://static.redhat.com/libs/redhat/marketing/latest/trustarc/trustarc.js"></script>
|
36 | 35 |
|
37 | 36 | <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined"
|
38 | 37 | rel="stylesheet">
|
39 |
| - <script> |
40 |
| - |
41 |
| - function getPDF() { |
42 |
| - var element = document.getElementsByClassName('main'); |
43 |
| - <% |
44 |
| - filepath = repo_path[0...-5] |
45 |
| - %> |
46 |
| - var opt = { |
47 |
| - margin: 10, |
48 |
| - filename: '<%= "#{filepath}.pdf" %>', |
49 |
| - html2canvas: { windowWidth: 650 }, |
50 |
| - image: { type: 'jpeg', quality: 0.98 } |
51 |
| - }; |
52 |
| - html2pdf().set(opt).from(element[0]).save(); |
53 |
| - } |
54 |
| - </script> |
55 | 38 |
|
56 | 39 | </head>
|
57 | 40 |
|
|
165 | 148 | <a href="https://github.com/openshift/openshift-docs/issues/new?title=<%= (distro_key == "openshift-enterprise") ? "[enterprise-#{version}] Issue in file #{repo_path}" : ((distro_key=="openshift-dedicated" ) ? "[dedicated] Issue in file #{repo_path}" : "[online] Issue in file #{repo_path}" ) %>">
|
166 | 149 | <span class="material-icons-outlined" title="Open an issue">bug_report</span>
|
167 | 150 | </a>
|
168 |
| - <a href="javascript: void(0);" onclick="getPDF();"><span class="material-icons-outlined" title="Download PDF (may take a while for large pages)">picture_as_pdf</span></a> |
| 151 | + <a href="javascript: void(0);" onclick="window.print()"><span class="material-icons-outlined" title="Print page (Save as PDF)">picture_as_pdf</span></a> |
169 | 152 | <% if (version == "4.5") %>
|
170 | 153 | /
|
171 | 154 | <select onchange="selectLang(this);">
|
|
222 | 205 | </div>
|
223 | 206 | </div>
|
224 | 207 | </div>
|
| 208 | + <div class="print-logo"> |
| 209 | + <img src="https://www.redhat.com/cms/managed-files/Logo-Red_Hat-OpenShift-A-Standard-RGB_0_0.svg" alt="print logo"/> |
| 210 | + </div> |
225 | 211 | <div class="col-xs-12 col-sm-9 col-md-9 main">
|
226 | 212 | <div class="page-header">
|
227 | 213 | <h1>
|
|
587 | 573 | </script>
|
588 | 574 |
|
589 | 575 | </body>
|
590 |
| - |
591 | 576 | </html>
|
0 commit comments