{#
    astroML/layout.html
    ~~~~~~~~~~~~~~~~~

    Layout for astroML, after the design used by scikit-learn
    (http://www.scikit-learn.org)

    :copyright: Jake Vanderplas
    :license: BSD
#}
{% extends "basic/layout.html" %}

{% block extrahead %}
<!-- Following code is for Google custom search bar -->
<script>
  (function() {
    var cx = '011400076584591653333:hjd_fbqk1u0';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
</script>

<!-- Following code is for toggle/glide features -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	$(".toggle_container").hide();

	$(".toggle_trigger").click(function(){
		$(this).toggleClass("active").next(".toggle_container").slideToggle("fast");
                return false; <!-- Prevent the link from being followed -->
	});

        $(".toggle_trigger#start_open").toggleClass("active").next().show();

});
</script>

<!-- Following code is for Google Analytics -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-35748160-1']);
  _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>
{% endblock %}

{%- if pagename == 'index' %}
    {% set title = 'astroML: Python Datamining for Astronomy' %}
{%- endif %}

{% block header %}
    <div class="header-wrapper">
      <div class="header">
        {%- if logo %}
          <p class="logo"><a href="{{ pathto(master_doc) }}">
            <img src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
          </a>
          </p>
        {%- endif %}

          {%- block navbar -%}
          <div class="navbar">
          <ul>
            <li><a href="{{pathto(master_doc)}}">Home</a></li>
	        <li><a href="{{pathto('user_guide/index')}}">User Guide</a></li>
            <li>
              <div class="dropdown">
                <a href="{{pathto('book_figures/index')}}">Book Figures</a>
                <div class="dropdown-content">
                  <ul>
                    <li><a href="{{pathto('book_figures/index')}}">2nd edition</a></li>
                    <li><a href="{{pathto('book_figures_1ed/index')}}">1st edition</a></li>
                  </ul>
                </div>
              </div>
            </li>
            <li><a href="{{pathto('examples/index')}}">Example Plots</a></li>
       </ul>

<!-- Google custom search.  Javascript that enables this is in the header above -->
<div class="search_form">
  <gcse:search></gcse:search>
</div>

          </div> <!-- end navbar -->
          {%- endblock -%}


       </div>
    </div>
{% endblock %}

{% block content %}
    <div class="content-wrapper">

    <!-- <div id="blue_tile"></div> -->

        <div class="sphinxsidebar">

       {%- if pagename != 'index' %}
	{%- if parents %}
	<div class="rel">
	{% else %}
	<div class="rel rellarge">
	{% endif %}
	<!-- rellinks[1:] is an ugly hack to avoid link to module
	    index  -->
	{%- for rellink in rellinks[3:]|reverse %}
	<div class="rellink">
	<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
	    {{ accesskey(rellink[2]) }}>{{ rellink[3]|capitalize }}
	    <br/>
	    <span class="smallrellink">
	    {{ rellink[1]|striptags|truncate(16, killwords=True) }}
	    </span>
	    {%- if rellink[1]|striptags %}
	    <span class="hiddenrellink">
	    {{ rellink[1]|striptags}}
	    </span>
	    {% endif %}
	    </a>
	</div>
	{%- if not loop.last %}
	    <div class="spacer">
	    &nbsp;
	    </div>
	{% endif %}
	{%- endfor %}
	<!-- Ad a link to the 'up' page -->
	{%- if parents %}
	<div class="spacer">
	&nbsp;
	</div>
	<div class="rellink">
	<a href="{{ parents[-1].link|e }}" title="{{ parents[-1].title|striptags }}" >
	Up
	<br/>
	<span class="smallrellink">
	{{ parents[-1].title|striptags|truncate(16, killwords=True) }}
	</span>
	{%- if parents[-1].title|striptags != '<no title>' %}
	<span class="hiddenrellink">
	{{ parents[-1].title|striptags }}
	</span>
	{% endif %}
	</a>
	</div>
    {%- endif %}
    </div>
    <p style="text-align: center">This documentation is
    for {{project}} <strong>version {{ release|e }}</strong>
    <!-- &mdash; <a href="http://scikit-learn.org/stable/support.html#documentation-resources">Other versions</a> -->
    </p>
        {% else %}
    <h3>News</h3>
    <p>January 2020: the AAS <a href="https://github.com/astroML/astroML-workshop_AAS235">astroML workshop material </a>is available on GitHub. </p>
    <p>December 2019: the second edition of the astroML textbook is now
    available. View it on  <a href="http://www.amazon.com/Statistics-Mining-Machine-Learning-Astronomy/dp/0691198306/">Amazon</a>.</p>
    <p>September 2019: <a href="/workshops/AAS235.html">astroML workshop</a> at the 235th AAS meeting. </p>
    <p>March 2019: astroML v0.4 has been released!  Get the source on
	    <a href="http://github.com/astroML/astroML">Github.</a></p>
    <p>July 2016: the textbook accompanying astroML was named the
       <a href="http://www.cambridge.org/us/academic/international-astrostatistics-association-award-winners">2016 IAA Outstanding Publication in Astrostatistics</a>.</p>
	<p>January 2014: the textbook accompanying astroML is now available!
	  View it on <a href="http://www.amazon.com/Statistics-Mining-Machine-Learning-Astronomy/dp/0691151687/">Amazon</a>.</p>
	<p>November 2013: astroML 0.2 has been released!</p>
	<!-- hard-coded link here because pathto() adds an extra # -->
	<p>Our <a href="/index.html#citing-astroml">
	    Introduction to astroML paper</a> received the CIDU 2012
	  best paper award.</p>
        {% endif %}

	{% if pagename != 'index' %}

        <h3>{{ _('This page') }}</h3>
         {{ toc }}

        {% endif %}

	<h3>Links</h3>
	<p><a href="https://groups.google.com/forum/#!forum/astroml-general">astroML Mailing List</a></p>
	<p><a href="http://github.com/astroML/astroML/issues">GitHub Issue Tracker</a></p>

	<h3>Videos</h3>
	<p><a href="http://pyvideo.org/video/1218/astroml-data-mining-and-machine-learning-for-ast">Scipy 2012</a> (15 minute talk)</p>
	<p><a href="http://pyvideo.org/video/2035/opening-up-astronomy-with-python-and-astroml-sci">Scipy 2013</a> (20 minute talk)</p>


    <h3>Citing</h3>
    <p>If you use the software, please consider

    <!-- hard-coded link here because pathto() adds an extra # -->
    <a href="/index.html#citing-astroml">citing astroML</a>.</p>


        {% if pagename == 'index' %}
	<!--
        <h3>Funding</h3>
        <p>Funding provided
	  by <a href="http://www.astro.washington.edu">
	    University of Washington</a> and ...</p>

        <p><a href="{{pathto('about')}}">Read more ...</a></p>
	-->
        {% endif %}

        </div>

      <div class="content">
          {%- block document %}
            {{ super() }}
          {%- endblock %}
        <div class="clearer"></div>
      </div>
    </div>
{% endblock %}


{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}


{%- block footer %}
    <div class="footer">
        <p style="text-align: center">This documentation is relative
        to {{project}} version {{ release|e }}<br/>

    {%- if show_copyright %}
      {%- if hasdoc('copyright') %}
        {% trans path=pathto('copyright'), copyright=copyright|e %}&copy; {{ copyright }}.{% endtrans %}
      {%- else %}
        {% trans copyright=copyright|e %}&copy; {{ copyright }}.{% endtrans %}
      {%- endif %}
    {%- endif %}
    {%- if last_updated %}
      {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
    {%- endif %}
    {%- if show_sphinx %}
      {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}{% endtrans %}. Design by <a href="http://webylimonada.com">Web y Limonada</a>.
    {%- endif %}
    {%- if show_source and has_source and sourcename %}
    <span style="padding-left: 5ex;">
    <a href="{{ pathto('_sources/' + sourcename, true)|e }}"
	    rel="nofollow">{{ _('Show this page source') }}</a>
    </span></p>
    {%- endif %}
    </div>
{%- endblock %}
