summaryrefslogtreecommitdiff
path: root/docs/theme/docker/layout.html
blob: 7d78fb9c3c8dddf3c1f45c0e63bb04c5bc62980e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="google-site-verification" content="UxV66EKuPe87dgnH1sbrldrx6VsoWMrx5NjwkgUFxXI" />
    <meta name="google-site-verification" content="XzwpAUE5-gjq6j2F0dDqiBYxCZpHd8uVYe5Fnyt3V8Q" />
    <title>{{ meta['title'] if meta and meta['title'] else title }} - Docker Documentation</title>
    <meta name="description" content="{{ meta['description'] if meta }}" />
    <meta name="keywords" content="{{ meta['keywords'] if meta }}" />
    <!-- Swiftype tags: https://swiftype.com/documentation/meta_tags -->
    <meta property='st:popularity' content='4' />
    <meta property='st:type' content='docker_doc' />

    {%- set url_root = pathto('', 1) %}
    {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}

    {%- if current_version == 'latest' %}
      {% set github_tag = 'master' %}
    {% else %}
      {% set github_tag = current_version %}
    {% endif %}

    <script type="text/javascript">
        // This is included here for Javascript that doesn't have access to the templates.
        var doc_version = "{{ current_version }}";
        var doc_slug = "{{ slug }}";
    </script>

    {%- set css_files = css_files + ['_static/css/bootstrap.css'] %}
    {%- set css_files = css_files + ['_static/pygments.css'] %}
    {%- set css_files = css_files + ['_static/css/main.css'] %}

    {%- set script_files =
    ['//code.jquery.com/jquery-1.10.1.min.js']
    + ['//fonts.googleapis.com/css?family=Cabin:400,700,400italic']
    %}

    {#
        This part is hopefully complex because things like |cut '/index/' are not available in Sphinx jinja
        and will make it crash. (and we need index/ out.
    #}
    <link rel="canonical" href="http://docs.docker.io/en/latest/
    {%- for word in pagename.split('/') -%}
        {%- if word != 'index' -%}
            {%- if word != '' -%}
                {{ word }}/
            {%- endif -%}
        {%- endif -%}
    {%- endfor -%}
    ">

    {%- for cssfile in css_files %}
    <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
    {%- endfor %}

    {%- for scriptfile in script_files if scriptfile != '_static/jquery.js' %}
    <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
    {%- endfor %}
    <link rel="shortcut icon" href="{{ pathto('_static/favicon.png', 1) }}"/>
    {%- block extrahead %}{% endblock %}

</head>

<body>

<div id="wrap">
<div class="navbar navbar-static-top navbar-inner navbar-fixed-top ">
    <div class="navbar-dotcloud">
        <div class="container">

            <div style="float: right" class="pull-right">
                <ul class="nav">
                    <li id="nav-introduction"><a href="http://www.docker.io/" title="Docker Homepage">Home</a></li>
                    <li id="nav-about"><a href="http://www.docker.io/about/" title="About">About</a></li>
                    <li id="nav-gettingstarted"><a href="http://www.docker.io/gettingstarted/">Getting started</a></li>
                    <li id="nav-community"><a href="http://www.docker.io/community/" title="Community">Community</a></li>
                    <li id="nav-documentation" class="active"><a href="http://docs.docker.io/en/latest/">Documentation</a></li>
                    <li id="nav-blog"><a href="http://blog.docker.io/" title="Docker Blog">Blog</a></li>
                    <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>
                </ul>
            </div>

            <div class="brand-logo">
                <a href="http://www.docker.io" title="Docker Homepage"><img src="{{ pathto('_static/img/docker-top-logo.png', 1) }}" alt="Docker logo"></a>
            </div>
        </div>
    </div>
</div>

<div class="container-fluid">

    <!-- Docs nav
     ================================================== -->
    <div class="row-fluid main-row">

        <div class="sidebar bs-docs-sidebar">
            <div class="page-title" >
                <h4>DOCUMENTATION</h4>
            </div>
            
            {{ toctree(collapse=False, maxdepth=3) }}
	    <form>
	      <input type="text" id="st-search-input" class="st-search-input span3" placeholder="search in documentation" style="width:210px;" />
          <div id="st-results-container"></div>
	    </form>
        </div>

        <!-- body block -->
        <div class="main-content">

            <!-- Main section
            ================================================== -->
            <section id="global" class="containerblock">
                {% block body %}{% endblock %}
            </section>

            <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>
        </div>
    </div>
</div>

<div id="push-the-footer"></div>
</div> <!-- end wrap for pushing footer -->

<div id="footer">
    <div class="footer-landscape">
        <div class="footer-landscape-image">
            <!-- footer -->
            <div class="container">
                <div class="row footer">
                    <div class="span12 tbox">
                        <div class="tbox">
                            <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>
                            <p>Documentation proudly hosted by <a href="http://www.readthedocs.org">Read the Docs</a></p>
                        </div>

                        <div class="social links">
                            <a title="Docker on Twitter" class="twitter" href="http://twitter.com/docker">Twitter</a>
                            <a title="Docker on GitHub" class="github" href="https://github.com/dotcloud/docker/">GitHub</a>
                            <a title="Docker on Reddit" class="reddit" href="http://www.reddit.com/r/Docker/">Reddit</a>
                            <a title="Docker on Google+" class="googleplus" href="https://plus.google.com/u/0/b/100381662757235514581/communities/108146856671494713993">Google+</a>
                            <a title="Docker on Facebook" class="facebook" href="https://www.facebook.com/docker.run">Facebook</a>
                            <a title="Docker on SlideShare" class="slideshare" href="http://www.slideshare.net/dotCloud">Slideshare</a>
                            <a title="Docker on Youtube" class="youtube" href="http://www.youtube.com/user/dockerrun/">Youtube</a>
                            <a title="Docker on Flickr" class="flickr" href="http://www.flickr.com/photos/99741659@N08/">Flickr</a>
                            <a title="Docker on LinkedIn" class="linkedin" href="http://www.linkedin.com/company/dotcloud">LinkedIn</a>
                        </div>

                        <div class="tbox version-flyer ">
                            <div class="content">
                                <p class="version-note">Note: You are currently browsing the development documentation. The current release may work differently.</p>

                                <small>Available versions:</small>
                                <ul class="inline">
                                    {% for slug, url in versions %}
                                    <li class="alternative"><a href="{{ url }}{%- for word in pagename.split('/') -%}
                                        {%- if word != 'index' -%}
                                            {%- if word != '' -%}
                                                {{ word }}/
                                            {%- endif -%}
                                        {%- endif -%}
                                    {%- endfor -%}"
                                    title="Switch to {{ slug }}">{{ slug }}</a></li>
                                    {% endfor %}
                                </ul>
                            </div>
                        </div>


                    </div>
                </div>
            </div>
        </div>
        <!-- end of footer -->
    </div>

</div>


<script type="text/javascript" src="{{ pathto('_static/js/docs.js', 1) }}"></script>

<!-- Swiftype search -->

<script type="text/javascript">
  var Swiftype = window.Swiftype || {};
  (function() {
  Swiftype.key = 'pWPnnyvwcfpcrw1o51Sz';
  Swiftype.inputElement = '#st-search-input';
  Swiftype.resultContainingElement = '#st-results-container';
  Swiftype.attachElement = '#st-search-input';
  Swiftype.renderStyle = "overlay";
  // from https://swiftype.com/questions/how-can-i-make-more-popular-content-rank-higher 
  // Use "page" for now -- they don't subgroup by document type yet.
  Swiftype.searchFunctionalBoosts = {"page": {"popularity": "linear"}};

  var script = document.createElement('script');
  script.type = 'text/javascript';
  script.async = true;
  script.src = "//swiftype.com/embed.js";
  var entry = document.getElementsByTagName('script')[0];
  entry.parentNode.insertBefore(script, entry);
  }());
</script>


<!-- Google analytics -->
<script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-6096819-11']);
    _gaq.push(['_setDomainName', 'docker.io']);
    _gaq.push(['_setAllowLinker', true]);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

</script>

</body>
</html>