{% extends "!layout.html" %}
{% set script_files = ['_static/js/vendor/modernizr-2.6.2.min.js'] %}
{% set css_files = css_files + ['_static/css/normalize.css'] %}

{%- block doctype -%}
<!DOCTYPE html>
{%- endblock %}

{%- macro script() %}
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '{{ url_root }}',
        VERSION:     '{{ release|e }}',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
        HAS_SOURCE:  {{ has_source|lower }}
      };
    </script>
    {%- for scriptfile in script_files %}
    <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
    {%- endfor %}
{%- endmacro %}

{%- macro css() %}
    <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
    <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
    {%- for cssfile in css_files %}
    <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
    {%- endfor %}
{%- endmacro %}

<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- TODO(silvano): add description -->
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    {{ metatags }}
    {%- block htmltitle %}
    <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
    {%- endblock %}
    {{ css() }}
    {{ script() }}
    <link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono|Roboto:300,400,700,700italic,400italic|Open+Sans:300' rel='stylesheet' type='text/css'>
    {%- if favicon %}
    <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
    {%- endif %}
    {%- block extrahead %} {% endblock %}
  </head>
  <body class="lang-page">
    <!--[if lt IE 7]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
    {%- block header %}
    <header class="page-header fixed" role="banner">
      <h1 class="logo">
        <a href="index.html" title="back to home">
          <img src="{{ pathto('_static/images/logo.svg', 1) }}" alt="Google Cloud Platform" />
          <span class="gcloud">gcloud</span>
        </a>
      </h1>
      <nav class="main-nav">
        <div class="nav-current">Python</div>
        <ul class="menu">
          <li>
            <a href="
https://googlecloudplatform.github.io/gcloud-java/" title="gcloud-java page">
              <img src="{{ pathto('_static/images/icon-lang-java-duke.svg', 1) }}" alt="Duke icon" class="menu-icon" />
              Java
            </a>
          </li>
          <li>
            <a href="
https://googlecloudplatform.github.io/gcloud-node/#/docs" title="Node.js docs page">
              <img src="{{ pathto('_static/images/icon-lang-nodejs.svg', 1) }}" alt="Node.js icon" class="menu-icon" />
              Node.js
            </a>
          </li>
          <li>
            <a href="#" title="Python docs page">
              <img src="{{ pathto('_static/images/icon-lang-python.svg', 1) }}" alt="Python icon" class="menu-icon" />
              Python
            </a>
          </li>
          <li>
            <a href="
http://googlecloudplatform.github.io/gcloud-ruby/docs/latest" title="Ruby docs page">
              <img src="{{ pathto('_static/images/icon-lang-ruby.svg', 1) }}" alt="Ruby icon" class="menu-icon" />
              Ruby
            </a>
          </li>
        </ul>
      </nav><!-- end of .main-nav -->
      {%- if show_source and has_source and pagename %}
      {%- set issue_uri = issue_uri_template.format(pagename|urlencode, release|urlencode) %}
      {%- endif %}
      <a href="{{ issue_uri }}" target="_blank" class="v-btn" id="file-issue">
        <img src="_static/images/icon-link-github.svg" />
        Report an Issue
      </a>
    </header><!-- end of .page-header -->
    {% endblock %}

    {# Silence the sidebar and relbars. #}
    {% block sidebar1 %}{% endblock %}
    {% block relbar1 %}{% endblock %}
    {% block relbar2 %}{% endblock %}

    {%- block content %}
      <article class="main lang-page" role="main">

      <header class="docs-header">
          <div class="versions">
            <a href="/gcloud-python/versions.html" class="v-btn">
              <img src="_static/images/icon-arrow-bullet.svg" />
              Version History ({{ release|e }})
            </a>
          </div><!-- end of .versions -->
          <div>
            <a href="{{ issue_uri }}" target="_blank" class="v-btn" id="file-issue-secondary">
              <img src="_static/images/icon-link-github.svg" />
              Report an Issue
            </a>
          </div>
      </header>

      <section class="content">
        {% block body %} {% endblock %}
      </section><!-- end of .content -->
      <nav class="side-nav">
        {{ toctree(includehidden=True, maxdepth=1, titles_only=True) }}
      </nav><!-- end of .side-nav -->
    </article><!-- end of .main -->

    <script src="{{ pathto('_static/js/vendor/jquery-1.10.2.min.js', 1) }}"></script>
    <script src="{{ pathto('_static/js/plugins.js', 1) }}"></script>
    <script src="{{ pathto('_static/js/main.js', 1) }}"></script>
  {% endblock %}

  {# Silence the footer #}
  {% block footer %}{% endblock %}

  </body>
</html>
