mirror of https://github.com/docker/docs.git
109 lines
4.4 KiB
Plaintext
109 lines
4.4 KiB
Plaintext
<%#
|
|
Copyright 2008-2013 Concur Technologies, Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
not use this file except in compliance with the License. You may obtain
|
|
a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
License for the specific language governing permissions and limitations
|
|
under the License.
|
|
%>
|
|
<% language_tabs = current_page.data.language_tabs %>
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<title><%= current_page.data.title || "API Documentation" %></title>
|
|
|
|
<%= stylesheet_link_tag :screen, media: :screen %>
|
|
<%= stylesheet_link_tag :print, media: :print %>
|
|
<script type="text/javascript">
|
|
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0";
|
|
analytics.load("IWj9D0UpZHZdZUZX9jl98PcpBFWBnBMy");
|
|
analytics.page();
|
|
}}();
|
|
</script>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
|
<% if current_page.data.search %>
|
|
<%= javascript_include_tag "all" %>
|
|
<% else %>
|
|
<%= javascript_include_tag "all_nosearch" %>
|
|
<% end %>
|
|
|
|
<% if language_tabs %>
|
|
<script>
|
|
$(function() {
|
|
setupLanguages(<%= language_tabs.map{ |lang| lang.is_a?(Hash) ? lang.keys.first : lang }.to_json %>);
|
|
});
|
|
</script>
|
|
<% end %>
|
|
</head>
|
|
|
|
<body class="<%= page_classes %>">
|
|
<a href="#" id="nav-button">
|
|
<span>
|
|
NAV
|
|
<%= image_tag('navbar.png') %>
|
|
</span>
|
|
</a>
|
|
<div class="tocify-wrapper">
|
|
<%= image_tag "logo.png" %>
|
|
<% if language_tabs %>
|
|
<div class="lang-selector">
|
|
<% language_tabs.each do |lang| %>
|
|
<% if lang.is_a? Hash %>
|
|
<a href="#" data-language-name="<%= lang.keys.first %>"><%= lang.values.first %></a>
|
|
<% else %>
|
|
<a href="#" data-language-name="<%= lang %>"><%= lang %></a>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
<% if current_page.data.search %>
|
|
<div class="search">
|
|
<input type="text" class="search" id="input-search" placeholder="Search">
|
|
</div>
|
|
<ul class="search-results"></ul>
|
|
<% end %>
|
|
<div id="toc">
|
|
</div>
|
|
<% if current_page.data.toc_footers %>
|
|
<ul class="toc-footer">
|
|
<% current_page.data.toc_footers.each do |footer| %>
|
|
<li><%= footer %></li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|
|
</div>
|
|
<div class="page-wrapper">
|
|
<div class="dark-box"></div>
|
|
<div class="content">
|
|
<%= yield %>
|
|
<% current_page.data.includes && current_page.data.includes.each do |include| %>
|
|
<%= partial "includes/#{include}" %>
|
|
<% end %>
|
|
</div>
|
|
<div class="dark-box">
|
|
<% if language_tabs %>
|
|
<div class="lang-selector">
|
|
<% language_tabs.each do |lang| %>
|
|
<% if lang.is_a? Hash %>
|
|
<a href="#" data-language-name="<%= lang.keys.first %>"><%= lang.values.first %></a>
|
|
<% else %>
|
|
<a href="#" data-language-name="<%= lang %>"><%= lang %></a>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|