mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
Initial Commit
This commit is contained in:
1
_templates/_analytics.html.erb
Normal file
1
_templates/_analytics.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render(distro_key == 'openshift-origin' ? "_templates/_analytics_origin.html" : "_templates/_analytics_other.html") %>
|
||||
7
_templates/_analytics_origin.html
Normal file
7
_templates/_analytics_origin.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<script async src="//www.google-analytics.com/analytics.js" type="text/javascript"></script>
|
||||
<script>
|
||||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||
ga('create', 'UA-40375612-1', 'openshift.org');
|
||||
ga('set', 'forceSSL', true);
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
11
_templates/_analytics_other.html
Normal file
11
_templates/_analytics_other.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- Google Tag Manager -->
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-PMDVKG');</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
|
||||
<!-- Adobe DTM -->
|
||||
<script src="//www.redhat.com/dtm.js" type="text/javascript"></script>
|
||||
<!-- End Adobe DTM -->
|
||||
1
_templates/_footer.html.erb
Normal file
1
_templates/_footer.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render((distro_key == 'openshift-origin' ? "_templates/_footer_origin.html.erb" : "_templates/_footer_other.html.erb"), :images_path => images_path) %>
|
||||
21
_templates/_footer_atomic.html
Normal file
21
_templates/_footer_atomic.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<footer>
|
||||
<hr class='visible-print'>
|
||||
|
||||
© 2014–2016 Project Atomic. Sponsored by Red Hat, Inc.
|
||||
<div class='edit-this-page pull-right'>
|
||||
<a href="https://github.com/openshift/openshift-docs#contributing-to-openshift-documentation"><i class="icon fa fa-fw fa-github"></i>Edit this page on GitHub</a>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik-osasteam.rhcloud.com/piwik/";
|
||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||
_paq.push(['setSiteId', 4]);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
|
||||
g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<noscript><p><img src="https://piwik-osasteam.rhcloud.com/piwik/piwik.php?idsite=4" style="border:0;" alt="" /></p></noscript>
|
||||
</footer>
|
||||
62
_templates/_footer_origin.html.erb
Normal file
62
_templates/_footer_origin.html.erb
Normal file
@@ -0,0 +1,62 @@
|
||||
<footer class="footer-origin-docs">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div id="footer_social">
|
||||
<a href="https://twitter.com/openshift" class="first">
|
||||
<span>
|
||||
<i class="fa fa-twitter-square fa-2x fa-inverse"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="https://github.com/openshift/origin">
|
||||
<span>
|
||||
<i class="fa fa-github fa-2x fa-inverse"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="https://plus.google.com/communities/114361859072744017486">
|
||||
<span>
|
||||
<i class="fa fa-google-plus-square fa-2x fa-inverse"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="https://www.facebook.com/openshift">
|
||||
<span>
|
||||
<i class="fa fa-facebook-square fa-2x fa-inverse"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<a id="footer_logo" href="https://www.redhat.com/">
|
||||
<img alt="Red Hat" src="https://assets.openshift.net/app/assets/redhat.svg">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 text-center">
|
||||
<a id="powered_by_openshift" title="Powered by OpenShift Online" href="https://www.openshift.com/">
|
||||
<img src="https://www.openshift.com/sites/default/files/images/powered-transparent-white.png" alt="Powered by OpenShift Online">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 text-right">
|
||||
<a id="built_with_asciibinder" title="Built with AsciiBinder docs management system" href="http://asciibinder.org/">
|
||||
<img src="<%= File.join(images_path, 'asciibinder_web_logo.svg') %>" alt="AsciiBinder">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="attribution">
|
||||
<button type="button" class="btn btn-link" data-html="true" data-container="body" data-toggle="popover" data-placement="top" data-content="
|
||||
'<a target='_blank' href='https://www.flickr.com/photos/eflon/3655695161/'>Spin</a>' by <a target='_blank' href='https://www.flickr.com/photos/eflon/'>eflon</a>,</br> used under <a target='_blank' href='https://creativecommons.org/licenses/by/2.0/'>CC BY 2.0</a> </br>Color tint added to original">
|
||||
Image attribution
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
$('[data-toggle="popover"]').popover()
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
</footer>
|
||||
35
_templates/_footer_other.html.erb
Normal file
35
_templates/_footer_other.html.erb
Normal file
@@ -0,0 +1,35 @@
|
||||
<footer id="rh">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<img src="https://assets.openshift.net/content/subdomain/redhat_logo.svg" class="img-fluid" alt="Red Hat" style="height: 40px;">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3">
|
||||
<p>Copyright © 2018 <span class="text-nowrap">Red Hat, Inc.</span></p>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-5">
|
||||
<nav class="nav">
|
||||
<a href="https://www.redhat.com/en/about/privacy-policy" class="nav-link">Privacy statement</a>
|
||||
<a href="https://www.openshift.com/legal/terms/" class="nav-link">Terms of use</a>
|
||||
<a href="https://www.redhat.com/en/about/all-policies-guidelines" class="nav-link">All policies and guidelines</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="hidden-sm col-sm-2 powered-by">
|
||||
<a href="https://www.openshift.com/" title="Powered by OpenShift Online">
|
||||
<img src="https://www.openshift.com/images/logos/powered_by_openshift_reverse.png" alt="Powered by OpenShift Online">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- Adobe DTM -->
|
||||
<script type="text/javascript">
|
||||
if (("undefined" !== typeof _satellite) && ("function" === typeof _satellite.pageBottom)) {
|
||||
_satellite.pageBottom();
|
||||
}
|
||||
</script>
|
||||
<!-- End Adobe DTM -->
|
||||
28
_templates/_nav_atomic.html.erb
Normal file
28
_templates/_nav_atomic.html.erb
Normal file
@@ -0,0 +1,28 @@
|
||||
<ul class='docbrowser nav nav-vertical'>
|
||||
<%- navigation.each.with_index do |topic_group, groupidx| -%>
|
||||
<%- current_group = topic_group[:id] == group_id -%>
|
||||
<li class='disabled'>
|
||||
<h3><%= topic_group[:name] %></h3>
|
||||
</li>
|
||||
<%- topic_group[:topics].each.with_index do |topic, topicidx| -%>
|
||||
<%- if not topic.has_key?(:topics) -%>
|
||||
<%- current_topic = current_group && (topic[:id] == topic_id) -%>
|
||||
<li role="menuitem" class="<%= current_topic ? ' active' : '' %>"><a href="<%= subtopic_shim %><%= topic[:path] %>"><%= topic[:name] %></a></li>
|
||||
<%- else -%>
|
||||
<%- current_subgroup = topic[:id] == subgroup_id -%>
|
||||
<!-- <li role="menuitem"><a><%= topic[:name] %></a></li> -->
|
||||
<li role="menuitem" class="<%= current_topic ? ' active' : '' %>">
|
||||
<a class="" href="javascript:void(0);" data-toggle="collapse" data-target="#topicSubGroup-<%= groupidx %>-<%= topicidx %>">
|
||||
<span id="sgSpan-<%= groupidx %>-<%= topicidx %>" class="fa <%= current_subgroup ? 'fa-caret-down' : 'fa-caret-right' %>"></span> <%= topic[:name] %>
|
||||
</a>
|
||||
<ul id="topicSubGroup-<%= groupidx %>-<%= topicidx %>" class="nav-tertiary list-unstyled collapse<%= current_subgroup ? ' in' : '' %>">
|
||||
<%- topic[:topics].each do |subtopic| -%>
|
||||
<%- current_subtopic = current_group && current_subgroup && (subtopic[:id] == topic_id) %>
|
||||
<li class="<%= current_subtopic ? ' active' : '' %>"> <a role="menuitem" href="<%= subtopic_shim %><%= subtopic[:path] %>"><%= subtopic[:name] %></strong></a><li>
|
||||
<%- end -%>
|
||||
</ul>
|
||||
</li>
|
||||
<%- end -%>
|
||||
<%- end -%>
|
||||
<%- end -%>
|
||||
</ul>
|
||||
31
_templates/_nav_openshift.html.erb
Normal file
31
_templates/_nav_openshift.html.erb
Normal file
@@ -0,0 +1,31 @@
|
||||
<ul class="nav nav-sidebar">
|
||||
<%- navigation.each.with_index do |topic_group, groupidx| -%>
|
||||
<%- current_group = topic_group[:id] == group_id -%>
|
||||
<li class="nav-header">
|
||||
<a class="" href="javascript:void(0);" data-toggle="collapse" data-target="#topicGroup<%= groupidx %>">
|
||||
<span id="tgSpan<%= groupidx %>" class="fa <%= current_group ? 'fa-angle-down' : 'fa-angle-right' %>"></span><%= topic_group[:name] %>
|
||||
</a>
|
||||
<ul id="topicGroup<%= groupidx %>" class="collapse <%= current_group ? 'in' : '' %> list-unstyled">
|
||||
<%- topic_group[:topics].each.with_index do |topic, topicidx| -%>
|
||||
<%- if not topic.has_key?(:topics) -%>
|
||||
<%- current_topic = current_group && (topic[:id] == topic_id) -%>
|
||||
<li><a class="<%= current_topic ? ' active' : '' %>" href="<%= subtopic_shim %><%= topic[:path] %>"><%= topic[:name] %></a></li>
|
||||
<%- else -%>
|
||||
<%- current_subgroup = topic[:id] == subgroup_id -%>
|
||||
<li class="nav-header">
|
||||
<a class="" href="javascript:void(0);" data-toggle="collapse" data-target="#topicSubGroup-<%= groupidx %>-<%= topicidx %>">
|
||||
<span id="sgSpan-<%= groupidx %>-<%= topicidx %>" class="fa <%= current_subgroup ? 'fa-caret-down' : 'fa-caret-right' %>"></span> <%= topic[:name] %>
|
||||
</a>
|
||||
<ul id="topicSubGroup-<%= groupidx %>-<%= topicidx %>" class="nav-tertiary list-unstyled collapse<%= current_subgroup ? ' in' : '' %>">
|
||||
<%- topic[:topics].each do |subtopic| -%>
|
||||
<%- current_subtopic = current_group && current_subgroup && (subtopic[:id] == topic_id) %>
|
||||
<li><a class="<%= current_subtopic ? ' active' : '' %>" href="<%= subtopic_shim %><%= subtopic[:path] %>"><%= subtopic[:name] %></a></li>
|
||||
<%- end -%>
|
||||
</ul>
|
||||
</li>
|
||||
<%- end -%>
|
||||
<%- end -%>
|
||||
</ul>
|
||||
</li>
|
||||
<%- end -%>
|
||||
</ul>
|
||||
111
_templates/_page_openshift.html.erb
Normal file
111
_templates/_page_openshift.html.erb
Normal file
@@ -0,0 +1,111 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]> <html class="ie8"> <![endif]-->
|
||||
<!--[if IE 9]> <html class="ie9"> <![endif]-->
|
||||
<!--[if gt IE 9]><!-->
|
||||
<html>
|
||||
<!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<title><%= [topic_title, subgroup_title].compact.join(' - ') %> | <%= group_title %> | <%= distro %> <%= version %></title>
|
||||
<link href="https://assets.openshift.net/content/subdomain.css" rel="stylesheet" type="text/css">
|
||||
<link href="<%= File.join(css_path, 'docs.css') %>" rel="stylesheet" />
|
||||
<link href="<%= File.join(css_path, 'search.css') %>" rel="stylesheet" />
|
||||
<link href="https://assets.openshift.net/content/subdomain/touch-icon-precomposed.png" rel="apple-touch-icon-precomposed" type="image/png">
|
||||
<link href="https://assets.openshift.net/content/subdomain/favicon32x32.png" rel="shortcut icon" type="text/css">
|
||||
<link href="https://assets.openshift.net/content/osh-nav-footer.css" rel="stylesheet" type="text/css" media="screen, print" />
|
||||
<!--[if IE]><link rel="shortcut icon" href="https://assets.openshift.net/content/subdomain/favicon.ico"><![endif]-->
|
||||
<!-- or, set /favicon.ico for IE10 win -->
|
||||
<meta content="OpenShift" name="application-name">
|
||||
<meta content="#000000" name="msapplication-TileColor">
|
||||
<meta content="https://assets.openshift.net/content/subdomain/touch-icon-precomposed.png" name="msapplication-TileImage">
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://assets.openshift.net/content/html5shiv.js" type="text/javascript"></script>
|
||||
<script src="https://assets.openshift.net/content/respond.js" type="text/javascript"></script>
|
||||
<link href="https://assets.openshift.net/content/vendor/respond-js/respond-proxy.html" id="respond-proxy" rel="respond-proxy">
|
||||
<link href="<%= File.join(images_path, "respond.proxy.gif") %>" id="respond-redirect" rel="respond-redirect">
|
||||
<script src="<%= File.join(javascripts_path, "respond.proxy.js") %>" type="text/javascript"></script>
|
||||
<![endif]-->
|
||||
<script src="https://assets.openshift.net/content/modernizr.js" type="text/javascript"></script>
|
||||
<script src="https://assets.openshift.net/content/subdomain.js" type="text/javascript"></script>
|
||||
<script src="https://assets.openshift.net/content/nav-tertiary.js" type="text/javascript"></script>
|
||||
<script src="<%= File.join(javascripts_path, "bootstrap-offcanvas.js") %>" type="text/javascript"></script>
|
||||
<script src="<%= File.join(javascripts_path, "reformat-html.js") %>" type="text/javascript"></script>
|
||||
<script src="<%= File.join(javascripts_path, "hc-search.js") %>" type="text/javascript"></script>
|
||||
<%= render("_templates/_analytics.html.erb", :distro_key => distro_key) %>
|
||||
</head>
|
||||
<body>
|
||||
<%= render("_templates/_topnav.html.erb", :distro_key => distro_key) %>
|
||||
<div class="container">
|
||||
<p class="toggle-nav visible-xs pull-left">
|
||||
<button class="btn btn-default btn-sm" type="button" data-toggle="offcanvas">Toggle nav</button>
|
||||
</p>
|
||||
<ol class="breadcrumb">
|
||||
<li class="sitename">
|
||||
<a href="<%= site_home_path %>"><%= site_name %></a>
|
||||
</li>
|
||||
<li class="hidden-xs active">
|
||||
<%= breadcrumb_root %>
|
||||
</li>
|
||||
<li class="hidden-xs active">
|
||||
<%= breadcrumb_group %>
|
||||
</li>
|
||||
<%= breadcrumb_subgroup_block %>
|
||||
<li class="hidden-xs active">
|
||||
<%= breadcrumb_topic %>
|
||||
</li>
|
||||
<% if (distro_key != "openshift-origin") %>
|
||||
<span text-align="right" style="float: right !important">
|
||||
<a href="https://github.com/openshift/openshift-docs/commits/enterprise-<%= (distro_key == "openshift-enterprise") ? version : ((distro_key == "openshift-dedicated") ? "3.7" : "3.7") %>/<%= repo_path %>">
|
||||
Page history
|
||||
</a>
|
||||
/
|
||||
<a href="https://github.com/openshift/openshift-docs/issues/new?title=<%= (distro_key == "openshift-enterprise") ? "[enterprise-#{version}] Edit suggested in file #{repo_path}" :
|
||||
((distro_key == "openshift-dedicated") ? "[dedicated] Edit suggested in file #{repo_path}" : "[online] Edit suggested in file #{repo_path}") %>">
|
||||
Suggest an edit
|
||||
</a>
|
||||
</span>
|
||||
<% end %>
|
||||
</ol>
|
||||
<div class="row row-offcanvas row-offcanvas-left">
|
||||
<div class="col-xs-8 col-sm-3 col-md-3 sidebar sidebar-offcanvas">
|
||||
<div class="row-fluid">
|
||||
<%= render("_templates/_search.html.erb", :distro_key => distro_key, :version => version) %>
|
||||
</div>
|
||||
<%= render("_templates/_nav_openshift.html.erb", :navigation => navigation, :group_id => group_id, :topic_id => topic_id, :subgroup_id => subgroup_id, :subtopic_shim => subtopic_shim) %>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-9 col-md-9 main">
|
||||
<div class="page-header">
|
||||
<h1><%= article_title %></h1>
|
||||
</div>
|
||||
<%= content %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
$(document).ready(function() {
|
||||
$("[id^='topicGroup']").on('show.bs.collapse', function (event) {
|
||||
if (!($(event.target).attr('id').match(/^topicSubGroup/))) {
|
||||
$(this).parent().find("[id^='tgSpan']").toggleClass("fa-angle-right fa-angle-down");
|
||||
}
|
||||
});
|
||||
$("[id^='topicGroup']").on('hide.bs.collapse', function (event) {
|
||||
if (!($(event.target).attr('id').match(/^topicSubGroup/))) {
|
||||
$(this).parent().find("[id^='tgSpan']").toggleClass("fa-angle-right fa-angle-down");
|
||||
}
|
||||
});
|
||||
$("[id^='topicSubGroup']").on('show.bs.collapse', function () {
|
||||
$(this).parent().find("[id^='sgSpan']").toggleClass("fa-caret-right fa-caret-down");
|
||||
});
|
||||
$("[id^='topicSubGroup']").on('hide.bs.collapse', function () {
|
||||
$(this).parent().find("[id^='sgSpan']").toggleClass("fa-caret-right fa-caret-down");
|
||||
});
|
||||
});
|
||||
/*]]>*/
|
||||
</script>
|
||||
<%= render("_templates/_footer.html.erb", :distro_key => distro_key, :images_path => images_path) %>
|
||||
</body>
|
||||
</html>
|
||||
11
_templates/_search.html.erb
Normal file
11
_templates/_search.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<% if distro_key == 'openshift-origin' %>
|
||||
<%= render("_templates/_search_origin.html.erb", :version => version) %>
|
||||
<% elsif distro_key == 'openshift-dedicated' %>
|
||||
<%= render("_templates/_search_dedicated.html.erb") %>
|
||||
<% elsif distro_key == 'openshift-online' %>
|
||||
<%= render("_templates/_search_online.html") %>
|
||||
<% elsif distro_key == 'openshift-enterprise' %>
|
||||
<%= render("_templates/_search_enterprise.html.erb", :version => version) %>
|
||||
<% else %>
|
||||
<%= render("_templates/_search_other.html") %>
|
||||
<% end %>
|
||||
15
_templates/_search_dedicated.html.erb
Normal file
15
_templates/_search_dedicated.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id="hc-search">
|
||||
<input id="hc-search-input" type="text">
|
||||
<button id="hc-search-btn">Search</button>
|
||||
</div>
|
||||
|
||||
<div id="hc-search-modal">
|
||||
<div id="hc-modal-content">
|
||||
<span id="hc-modal-close">×</span>
|
||||
<div id="hc-search-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
hcSearchCategory("docs_dedicated");
|
||||
</script>
|
||||
15
_templates/_search_enterprise.html.erb
Normal file
15
_templates/_search_enterprise.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id="hc-search">
|
||||
<input id="hc-search-input" type="text">
|
||||
<button id="hc-search-btn">Search</button>
|
||||
</div>
|
||||
|
||||
<div id="hc-search-modal">
|
||||
<div id="hc-modal-content">
|
||||
<span id="hc-modal-close">×</span>
|
||||
<div id="hc-search-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
hcSearchCategory("docs_cp", "<%= version %>");
|
||||
</script>
|
||||
15
_templates/_search_online.html
Normal file
15
_templates/_search_online.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id="hc-search">
|
||||
<input id="hc-search-input" type="text">
|
||||
<button id="hc-search-btn">Search</button>
|
||||
</div>
|
||||
|
||||
<div id="hc-search-modal">
|
||||
<div id="hc-modal-content">
|
||||
<span id="hc-modal-close">×</span>
|
||||
<div id="hc-search-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
hcSearchCategory("docs_online");
|
||||
</script>
|
||||
15
_templates/_search_origin.html.erb
Normal file
15
_templates/_search_origin.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id="hc-search">
|
||||
<input id="hc-search-input" type="text">
|
||||
<button id="hc-search-btn">Search</button>
|
||||
</div>
|
||||
|
||||
<div id="hc-search-modal">
|
||||
<div id="hc-modal-content">
|
||||
<span id="hc-modal-close">×</span>
|
||||
<div id="hc-search-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
hcSearchCategory("docs_origin", "<%= version %>");
|
||||
</script>
|
||||
15
_templates/_search_other.html
Normal file
15
_templates/_search_other.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id="hc-search">
|
||||
<input id="hc-search-input" type="text">
|
||||
<button id="hc-search-btn">Search</button>
|
||||
</div>
|
||||
|
||||
<div id="hc-search-modal">
|
||||
<div id="hc-modal-content">
|
||||
<span id="hc-modal-close">×</span>
|
||||
<div id="hc-search-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
hcSearchCategory("docs");
|
||||
</script>
|
||||
1
_templates/_topnav.html.erb
Normal file
1
_templates/_topnav.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render(distro_key == 'openshift-origin' ? "_templates/_topnav_origin.html" : "_templates/_topnav_other.html") %>
|
||||
34
_templates/_topnav_atomic.html
Normal file
34
_templates/_topnav_atomic.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<div class='row'>
|
||||
<div class='col-md-3 col-lg-2' id='sidebar'>
|
||||
<div id='nav-primary'>
|
||||
<nav class='navbar navbar-default' role='navigation'>
|
||||
<div class='navbar-header'>
|
||||
<button class='navbar-toggle' data-target='.navbar-ex1-collapse' data-toggle='collapse'>
|
||||
<span class='sr-only'>
|
||||
Toggle navigation
|
||||
</span>
|
||||
<span class='icon-bar'></span>
|
||||
<span class='icon-bar'></span>
|
||||
<span class='icon-bar'></span>
|
||||
</button>
|
||||
<a class='navbar-brand' href='http://www.projectatomic.io/'>
|
||||
Project Atomic
|
||||
</a>
|
||||
</div>
|
||||
<div class='collapse navbar-collapse navbar-ex1-collapse'>
|
||||
<ul class='nav navbar-nav'>
|
||||
<li><a class="get-started" href="http://www.projectatomic.io/download">Get Started</a></li>
|
||||
<li><a class="documentation" href="http://www.projectatomic.io/docs">Documentation</a></li>
|
||||
<li><a class="developer-community" href="http://www.projectatomic.io/community">Developer Community</a></li>
|
||||
<li><a class="on-github" href="https://github.com/projectatomic/">On GitHub</a></li>
|
||||
<li><a class="ask" href="http://ask.projectatomic.io/">Ask</a></li>
|
||||
<li><a class="blog" href="http://www.projectatomic.io/blog">Blog</a></li>
|
||||
<li><a class="twitter" href="http://www.twitter.com/projectatomic">Twitter</a></li>
|
||||
<li><a class="facebook" href="https://www.facebook.com/projectatomic">Facebook</a></li>
|
||||
<li><a class="google" href="https://plus.google.com/108727025270662383247/posts">Google+</a></li>
|
||||
<li><a class="rss" href="http://www.projectatomic.io/blog/feed.xml">RSS</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
5
_templates/_topnav_origin.html
Normal file
5
_templates/_topnav_origin.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="navbar navbar-default navbar-openshift navbar-origin" role="navigation">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand origin" href="/"></a>
|
||||
</div>
|
||||
</div>
|
||||
121
_templates/_topnav_other.html
Normal file
121
_templates/_topnav_other.html
Normal file
@@ -0,0 +1,121 @@
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PMDVKG"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
|
||||
<nav id="main">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="navbar navbar-default navbar-openshift" role="navigation">
|
||||
<div class="navbar-header">
|
||||
<a href="#nav-main" class="dropdown-toggle navbar-menu-toggle hidden visible-xs" data-toggle="collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<a class="navbar-brand" target="_blank" href="https://www.openshift.com"></a>
|
||||
</div>
|
||||
<div id="nav-main" class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
Products <span class="fa fa-angle-down"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a target="_blank" href="https://www.openshift.com/products/">Overview</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/products/features/">Features</a></li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" target="_blank" href="https://www.openshift.com/products/online/">Online</a>
|
||||
<ul class="dropdown-menu product" style="display: none;">
|
||||
<a target="_blank" href="https://www.openshift.com/products/online/">
|
||||
<li>
|
||||
<p><img src="https://assets.openshift.net/content/subdomain/Logotype_RH_OpenShiftOnline_wLogo_RGB_Gray.svg" alt="" class="img-responsive"></p>
|
||||
<p>The fastest way for developers to build, host and scale applications in the public cloud</p>
|
||||
</li>
|
||||
</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" target="_blank" href="https://www.openshift.com/products/dedicated/">Dedicated</a>
|
||||
<ul class="dropdown-menu product" style="display: none;">
|
||||
<a target="_blank" href="https://www.openshift.com/products/dedicated/">
|
||||
<li>
|
||||
<p><img src="https://assets.openshift.net/content/subdomain/Logotype_RH_OpenShiftDedicated_wLogo_RGB_Gray.svg" alt="" class="img-responsive"></p>
|
||||
<p>Single-tenant, high-availability Kubernetes clusters in the public cloud</p>
|
||||
</li>
|
||||
</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" target="_blank" href="https://www.openshift.com/products/container-platform/">Container Platform</a>
|
||||
<ul class="dropdown-menu product" style="display: none;">
|
||||
<a target="_blank" href="https://www.openshift.com/products/container-platform/">
|
||||
<li>
|
||||
<p><img src="https://assets.openshift.net/content/subdomain/Logotype_RH_OpenShiftContainerPlatform_wLogo_RGB_Gray.svg" alt="" class="img-responsive"></p>
|
||||
<p>Build, deploy and manage your applications across cloud- and on-premise infrastructure</p>
|
||||
</li>
|
||||
</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/products/quay/">Quay</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/products/pricing/">Pricing</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
Learn <span class="fa fa-angle-down"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a target="_blank" href="https://www.openshift.com/learn/what-is-openshift/">What Is OpenShift</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/learn/get-started/">Get Started</a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
Technology Topics <span class="fa fa-angle-right"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" style="display: none;">
|
||||
<li><a target="_blank" href="https://www.openshift.com/learn/topics/security/">Security</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/learn/topics/kubernetes/">Kubernetes</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/learn/partners/">Partners</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/learn/success-stories/">Customer success stories</a></li>
|
||||
<li><a target="_blank" href="https://blog.openshift.com">Blog</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/learn/resources/">Resources</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
Community <span class="fa fa-angle-down"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a target="_blank" href="https://commons.openshift.org">OpenShift Commons</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.org">Open Source (Origin)</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/community/programs/startups/">Startups</a></li>
|
||||
<li><a target="_blank" href="https://www.openshift.com/community/programs/grants/">Grants</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
Support <span class="fa fa-angle-down"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a target="_blank" href="https://help.openshift.com">Help Center</a></li>
|
||||
<li><a href="https://docs.openshift.com">OpenShift Docs</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><a class="nav-sign-up" target="_blank" href="https://www.openshift.com/trial/">Free Trial</a></li>
|
||||
|
||||
<li><a target="_blank" href="https://manage.openshift.com" class="nav-log-in">Sign In <span class="fa fa-angle-right"></span></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
25
_templates/page.html.erb
Normal file
25
_templates/page.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<%= render((distro_key['atomic'] ? "_templates/_page_atomic.html.erb" : "_templates/_page_openshift.html.erb"),
|
||||
:distro_key => distro_key,
|
||||
:distro => distro,
|
||||
:version => version,
|
||||
:site_name => site_name,
|
||||
:group_id => group_id,
|
||||
:group_title => group_title,
|
||||
:subgroup_id => subgroup_id,
|
||||
:subgroup_title => subgroup_title,
|
||||
:topic_id => topic_id,
|
||||
:topic_title => topic_title,
|
||||
:article_title => article_title,
|
||||
:content => content,
|
||||
:navigation => navigation,
|
||||
:css_path => css_path,
|
||||
:javascripts_path => javascripts_path,
|
||||
:images_path => images_path,
|
||||
:template_path => template_path,
|
||||
:site_home_path => site_home_path,
|
||||
:breadcrumb_group => breadcrumb_group,
|
||||
:breadcrumb_root => breadcrumb_root,
|
||||
:breadcrumb_subgroup_block => breadcrumb_subgroup_block,
|
||||
:breadcrumb_topic => breadcrumb_topic,
|
||||
:subtopic_shim => subtopic_shim,
|
||||
:repo_path => repo_path) %>
|
||||
Reference in New Issue
Block a user