layout.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="utf-8">
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  5. <meta name="google-site-verification" content="UxV66EKuPe87dgnH1sbrldrx6VsoWMrx5NjwkgUFxXI" />
  6. <title>{{ meta['title'] if meta and meta['title'] else title }} - Docker Documentation</title>
  7. <meta name="description" content="{{ meta['description'] if meta }}" />
  8. <meta name="keywords" content="{{ meta['keywords'] if meta }}" />
  9. <!-- Swiftype tags: https://swiftype.com/documentation/meta_tags -->
  10. <meta property='st:popularity' content='4' />
  11. <meta property='st:type' content='docker_doc' />
  12. {%- set url_root = pathto('', 1) %}
  13. {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
  14. {%- if current_version == 'latest' %}
  15. {% set github_tag = 'master' %}
  16. {% else %}
  17. {% set github_tag = current_version %}
  18. {% endif %}
  19. <script type="text/javascript">
  20. // This is included here for Javascript that doesn't have access to the templates.
  21. var doc_version = "{{ current_version }}";
  22. var doc_slug = "{{ slug }}";
  23. </script>
  24. {%- set css_files = css_files + ['_static/css/bootstrap.css'] %}
  25. {%- set css_files = css_files + ['_static/pygments.css'] %}
  26. {%- set css_files = css_files + ['_static/css/main.css'] %}
  27. {%- set script_files =
  28. ['//code.jquery.com/jquery-1.10.1.min.js']
  29. + ['//fonts.googleapis.com/css?family=Cabin:400,700,400italic']
  30. %}
  31. {#
  32. This part is hopefully complex because things like |cut '/index/' are not available in Sphinx jinja
  33. and will make it crash. (and we need index/ out.
  34. #}
  35. <link rel="canonical" href="http://docs.docker.io/en/latest/
  36. {%- for word in pagename.split('/') -%}
  37. {%- if word != 'index' -%}
  38. {%- if word != '' -%}
  39. {{ word }}/
  40. {%- endif -%}
  41. {%- endif -%}
  42. {%- endfor -%}
  43. ">
  44. {%- for cssfile in css_files %}
  45. <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
  46. {%- endfor %}
  47. {%- for scriptfile in script_files if scriptfile != '_static/jquery.js' %}
  48. <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
  49. {%- endfor %}
  50. <link rel="shortcut icon" href="{{ pathto('_static/favicon.png', 1) }}"/>
  51. {%- block extrahead %}{% endblock %}
  52. </head>
  53. <body>
  54. <div id="wrap">
  55. <div class="navbar navbar-static-top navbar-inner navbar-fixed-top ">
  56. <div class="navbar-dotcloud">
  57. <div class="container">
  58. <div style="float: right" class="pull-right">
  59. <ul class="nav">
  60. <li id="nav-introduction"><a href="http://www.docker.io/" title="Docker Homepage">Home</a></li>
  61. <li id="nav-about"><a href="http://www.docker.io/about/" title="About">About</a></li>
  62. <li id="nav-gettingstarted"><a href="http://www.docker.io/gettingstarted/">Getting started</a></li>
  63. <li id="nav-community"><a href="http://www.docker.io/community/" title="Community">Community</a></li>
  64. <li id="nav-documentation" class="active"><a href="http://docs.docker.io/en/latest/">Documentation</a></li>
  65. <li id="nav-blog"><a href="http://blog.docker.io/" title="Docker Blog">Blog</a></li>
  66. <li id="nav-index"><a href="http://index.docker.io/" title="Docker Image Index, find images here">INDEX <img class="inline-icon" alt="link to external site" src="{{ pathto('_static/img/external-link-icon.png', 1) }}" title="external link"> </a></li>
  67. </ul>
  68. </div>
  69. <div class="brand-logo">
  70. <a href="http://www.docker.io" title="Docker Homepage"><img src="{{ pathto('_static/img/docker-top-logo.png', 1) }}" alt="Docker logo"></a>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="container-fluid">
  76. <!-- Docs nav
  77. ================================================== -->
  78. <div class="row-fluid main-row">
  79. <div class="sidebar bs-docs-sidebar">
  80. <div class="page-title" >
  81. <h4>DOCUMENTATION</h4>
  82. </div>
  83. {{ toctree(collapse=False, maxdepth=3) }}
  84. <form>
  85. <input type="text" id="st-search-input" class="st-search-input span3" placeholder="search in documentation" style="width:210px;" />
  86. <div id="st-results-container"></div>
  87. </form>
  88. </div>
  89. <!-- body block -->
  90. <div class="main-content">
  91. <!-- Main section
  92. ================================================== -->
  93. <section id="global" class="containerblock">
  94. {% block body %}{% endblock %}
  95. </section>
  96. <div class="pull-right"><a href="https://github.com/dotcloud/docker/blob/{{ github_tag }}/docs/sources/{{ pagename }}.rst" title="edit this article">Edit this article on GitHub</a></div>
  97. </div>
  98. </div>
  99. </div>
  100. <div id="push-the-footer"></div>
  101. </div> <!-- end wrap for pushing footer -->
  102. <div id="footer">
  103. <div class="footer-landscape">
  104. <div class="footer-landscape-image">
  105. <!-- footer -->
  106. <div class="container">
  107. <div class="row footer">
  108. <div class="span12 tbox">
  109. <div class="tbox">
  110. <p>Docker is an open source project, sponsored by <a href="https://www.docker.com">Docker Inc.</a>, under the <a href="https://github.com/dotcloud/docker/blob/master/LICENSE" title="Docker licence, hosted in the Github repository">apache 2.0 licence</a></p>
  111. <p>Documentation proudly hosted by <a href="http://www.readthedocs.org">Read the Docs</a></p>
  112. </div>
  113. <div class="social links">
  114. <a title="Docker on Twitter" class="twitter" href="http://twitter.com/docker">Twitter</a>
  115. <a title="Docker on GitHub" class="github" href="https://github.com/dotcloud/docker/">GitHub</a>
  116. <a title="Docker on Reddit" class="reddit" href="http://www.reddit.com/r/Docker/">Reddit</a>
  117. <a title="Docker on Google+" class="googleplus" href="https://plus.google.com/u/0/b/100381662757235514581/communities/108146856671494713993">Google+</a>
  118. <a title="Docker on Facebook" class="facebook" href="https://www.facebook.com/docker.run">Facebook</a>
  119. <a title="Docker on SlideShare" class="slideshare" href="http://www.slideshare.net/dotCloud">Slideshare</a>
  120. <a title="Docker on Youtube" class="youtube" href="http://www.youtube.com/user/dockerrun/">Youtube</a>
  121. <a title="Docker on Flickr" class="flickr" href="http://www.flickr.com/photos/99741659@N08/">Flickr</a>
  122. <a title="Docker on LinkedIn" class="linkedin" href="http://www.linkedin.com/company/dotcloud">LinkedIn</a>
  123. </div>
  124. <div class="tbox version-flyer ">
  125. <div class="content">
  126. <p class="version-note">Note: You are currently browsing the development documentation. The current release may work differently.</p>
  127. <small>Available versions:</small>
  128. <ul class="inline">
  129. {% for slug, url in versions %}
  130. <li class="alternative"><a href="{{ url }}{%- for word in pagename.split('/') -%}
  131. {%- if word != 'index' -%}
  132. {%- if word != '' -%}
  133. {{ word }}/
  134. {%- endif -%}
  135. {%- endif -%}
  136. {%- endfor -%}"
  137. title="Switch to {{ slug }}">{{ slug }}</a></li>
  138. {% endfor %}
  139. </ul>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <!-- end of footer -->
  147. </div>
  148. </div>
  149. <script type="text/javascript" src="{{ pathto('_static/js/docs.js', 1) }}"></script>
  150. <!-- Swiftype search -->
  151. <script type="text/javascript">
  152. var Swiftype = window.Swiftype || {};
  153. (function() {
  154. Swiftype.key = 'pWPnnyvwcfpcrw1o51Sz';
  155. Swiftype.inputElement = '#st-search-input';
  156. Swiftype.resultContainingElement = '#st-results-container';
  157. Swiftype.attachElement = '#st-search-input';
  158. Swiftype.renderStyle = "overlay";
  159. // from https://swiftype.com/questions/how-can-i-make-more-popular-content-rank-higher
  160. // Use "page" for now -- they don't subgroup by document type yet.
  161. Swiftype.searchFunctionalBoosts = {"page": {"popularity": "linear"}};
  162. var script = document.createElement('script');
  163. script.type = 'text/javascript';
  164. script.async = true;
  165. script.src = "//swiftype.com/embed.js";
  166. var entry = document.getElementsByTagName('script')[0];
  167. entry.parentNode.insertBefore(script, entry);
  168. }());
  169. </script>
  170. <!-- Google analytics -->
  171. <script type="text/javascript">
  172. var _gaq = _gaq || [];
  173. _gaq.push(['_setAccount', 'UA-6096819-11']);
  174. _gaq.push(['_setDomainName', 'docker.io']);
  175. _gaq.push(['_setAllowLinker', true]);
  176. _gaq.push(['_trackPageview']);
  177. (function() {
  178. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  179. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  180. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  181. })();
  182. </script>
  183. </body>
  184. </html>