convert_with_sphinx.patch 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. diff --git a/docs/Dockerfile b/docs/Dockerfile
  2. index bc2b73b..b9808b2 100644
  3. --- a/docs/Dockerfile
  4. +++ b/docs/Dockerfile
  5. @@ -4,14 +4,24 @@ MAINTAINER SvenDowideit@docker.com
  6. # docker build -t docker:docs . && docker run -p 8000:8000 docker:docs
  7. #
  8. -RUN apt-get update && apt-get install -yq make python-pip python-setuptools
  9. -
  10. +RUN apt-get update && apt-get install -yq make python-pip python-setuptools
  11. RUN pip install mkdocs
  12. +RUN apt-get install -yq vim-tiny git pandoc
  13. +
  14. +# pip installs from docs/requirements.txt, but here to increase cacheability
  15. +RUN pip install Sphinx==1.2.1
  16. +RUN pip install sphinxcontrib-httpdomain==1.2.0
  17. +
  18. ADD . /docs
  19. +
  20. +#build the sphinx html
  21. +RUN make -C /docs clean docs
  22. +
  23. WORKDIR /docs
  24. -CMD ["mkdocs", "serve"]
  25. +#CMD ["mkdocs", "serve"]
  26. +CMD bash
  27. # note, EXPOSE is only last because of https://github.com/dotcloud/docker/issues/3525
  28. EXPOSE 8000
  29. diff --git a/docs/theme/docker/layout.html b/docs/theme/docker/layout.html
  30. index 7d78fb9..0dac9e0 100755
  31. --- a/docs/theme/docker/layout.html
  32. +++ b/docs/theme/docker/layout.html
  33. @@ -63,48 +63,6 @@
  34. <body>
  35. -<div id="wrap">
  36. -<div class="navbar navbar-static-top navbar-inner navbar-fixed-top ">
  37. - <div class="navbar-dotcloud">
  38. - <div class="container">
  39. -
  40. - <div style="float: right" class="pull-right">
  41. - <ul class="nav">
  42. - <li id="nav-introduction"><a href="http://www.docker.io/" title="Docker Homepage">Home</a></li>
  43. - <li id="nav-about"><a href="http://www.docker.io/about/" title="About">About</a></li>
  44. - <li id="nav-gettingstarted"><a href="http://www.docker.io/gettingstarted/">Getting started</a></li>
  45. - <li id="nav-community"><a href="http://www.docker.io/community/" title="Community">Community</a></li>
  46. - <li id="nav-documentation" class="active"><a href="http://docs.docker.io/en/latest/">Documentation</a></li>
  47. - <li id="nav-blog"><a href="http://blog.docker.io/" title="Docker Blog">Blog</a></li>
  48. - <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>
  49. - </ul>
  50. - </div>
  51. -
  52. - <div class="brand-logo">
  53. - <a href="http://www.docker.io" title="Docker Homepage"><img src="{{ pathto('_static/img/docker-top-logo.png', 1) }}" alt="Docker logo"></a>
  54. - </div>
  55. - </div>
  56. - </div>
  57. -</div>
  58. -
  59. -<div class="container-fluid">
  60. -
  61. - <!-- Docs nav
  62. - ================================================== -->
  63. - <div class="row-fluid main-row">
  64. -
  65. - <div class="sidebar bs-docs-sidebar">
  66. - <div class="page-title" >
  67. - <h4>DOCUMENTATION</h4>
  68. - </div>
  69. -
  70. - {{ toctree(collapse=False, maxdepth=3) }}
  71. - <form>
  72. - <input type="text" id="st-search-input" class="st-search-input span3" placeholder="search in documentation" style="width:210px;" />
  73. - <div id="st-results-container"></div>
  74. - </form>
  75. - </div>
  76. -
  77. <!-- body block -->
  78. <div class="main-content">
  79. @@ -114,111 +72,7 @@
  80. {% block body %}{% endblock %}
  81. </section>
  82. - <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>
  83. </div>
  84. - </div>
  85. -</div>
  86. -
  87. -<div id="push-the-footer"></div>
  88. -</div> <!-- end wrap for pushing footer -->
  89. -
  90. -<div id="footer">
  91. - <div class="footer-landscape">
  92. - <div class="footer-landscape-image">
  93. - <!-- footer -->
  94. - <div class="container">
  95. - <div class="row footer">
  96. - <div class="span12 tbox">
  97. - <div class="tbox">
  98. - <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>
  99. - <p>Documentation proudly hosted by <a href="http://www.readthedocs.org">Read the Docs</a></p>
  100. - </div>
  101. -
  102. - <div class="social links">
  103. - <a title="Docker on Twitter" class="twitter" href="http://twitter.com/docker">Twitter</a>
  104. - <a title="Docker on GitHub" class="github" href="https://github.com/dotcloud/docker/">GitHub</a>
  105. - <a title="Docker on Reddit" class="reddit" href="http://www.reddit.com/r/Docker/">Reddit</a>
  106. - <a title="Docker on Google+" class="googleplus" href="https://plus.google.com/u/0/b/100381662757235514581/communities/108146856671494713993">Google+</a>
  107. - <a title="Docker on Facebook" class="facebook" href="https://www.facebook.com/docker.run">Facebook</a>
  108. - <a title="Docker on SlideShare" class="slideshare" href="http://www.slideshare.net/dotCloud">Slideshare</a>
  109. - <a title="Docker on Youtube" class="youtube" href="http://www.youtube.com/user/dockerrun/">Youtube</a>
  110. - <a title="Docker on Flickr" class="flickr" href="http://www.flickr.com/photos/99741659@N08/">Flickr</a>
  111. - <a title="Docker on LinkedIn" class="linkedin" href="http://www.linkedin.com/company/dotcloud">LinkedIn</a>
  112. - </div>
  113. -
  114. - <div class="tbox version-flyer ">
  115. - <div class="content">
  116. - <p class="version-note">Note: You are currently browsing the development documentation. The current release may work differently.</p>
  117. -
  118. - <small>Available versions:</small>
  119. - <ul class="inline">
  120. - {% for slug, url in versions %}
  121. - <li class="alternative"><a href="{{ url }}{%- for word in pagename.split('/') -%}
  122. - {%- if word != 'index' -%}
  123. - {%- if word != '' -%}
  124. - {{ word }}/
  125. - {%- endif -%}
  126. - {%- endif -%}
  127. - {%- endfor -%}"
  128. - title="Switch to {{ slug }}">{{ slug }}</a></li>
  129. - {% endfor %}
  130. - </ul>
  131. - </div>
  132. - </div>
  133. -
  134. -
  135. - </div>
  136. - </div>
  137. - </div>
  138. - </div>
  139. - <!-- end of footer -->
  140. - </div>
  141. -
  142. -</div>
  143. -
  144. -
  145. -<script type="text/javascript" src="{{ pathto('_static/js/docs.js', 1) }}"></script>
  146. -
  147. -<!-- Swiftype search -->
  148. -
  149. -<script type="text/javascript">
  150. - var Swiftype = window.Swiftype || {};
  151. - (function() {
  152. - Swiftype.key = 'pWPnnyvwcfpcrw1o51Sz';
  153. - Swiftype.inputElement = '#st-search-input';
  154. - Swiftype.resultContainingElement = '#st-results-container';
  155. - Swiftype.attachElement = '#st-search-input';
  156. - Swiftype.renderStyle = "overlay";
  157. - // from https://swiftype.com/questions/how-can-i-make-more-popular-content-rank-higher
  158. - // Use "page" for now -- they don't subgroup by document type yet.
  159. - Swiftype.searchFunctionalBoosts = {"page": {"popularity": "linear"}};
  160. -
  161. - var script = document.createElement('script');
  162. - script.type = 'text/javascript';
  163. - script.async = true;
  164. - script.src = "//swiftype.com/embed.js";
  165. - var entry = document.getElementsByTagName('script')[0];
  166. - entry.parentNode.insertBefore(script, entry);
  167. - }());
  168. -</script>
  169. -
  170. -
  171. -<!-- Google analytics -->
  172. -<script type="text/javascript">
  173. -
  174. - var _gaq = _gaq || [];
  175. - _gaq.push(['_setAccount', 'UA-6096819-11']);
  176. - _gaq.push(['_setDomainName', 'docker.io']);
  177. - _gaq.push(['_setAllowLinker', true]);
  178. - _gaq.push(['_trackPageview']);
  179. -
  180. - (function() {
  181. - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  182. - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  183. - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  184. - })();
  185. -
  186. -</script>
  187. </body>
  188. </html>