Skip to content
Permalink
Browse files

Update sphinx agogo theme

  • Loading branch information...
vanosg committed Oct 24, 2019
1 parent 8b2243a commit 0cca6ac1737f0615dca54242b480ef9f856963d1
@@ -5,13 +5,13 @@
Sphinx layout template for the agogo theme, originally written
by Andi Albrecht.

:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{% extends "basic/layout.html" %}
{%- extends "basic/layout.html" %}

{% block header %}
<div class="header-wrapper">
<div class="header-wrapper" role="banner">
<div class="header">
{%- if logo %}
<p class="logo"><a href="{{ pathto(master_doc) }}">
@@ -22,7 +22,7 @@
<div class="headertitle"><a
href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></div>
{%- endblock %}
<div class="rel">
<div class="rel" role="navigation" aria-label="related navigation">
{%- for rellink in rellinks|reverse %}
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
@@ -33,32 +33,40 @@
</div>
{% endblock %}

{%- macro agogo_sidebar() %}
{%- block sidebartoc %}
<h3>{{ _('Table of Contents') }}</h3>
{{ toctree() }}
{%- endblock %}
{%- block sidebarsearch %}
<div role="search">
<h3 style="margin-top: 1.5em;">{{ _('Search') }}</h3>
<form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" />
<input type="submit" value="{{ _('Go') }}" />
</form>
</div>
{%- endblock %}
{% endmacro %}

{% block content %}
<div class="content-wrapper">
<div class="content">
{%- if not theme_rightsidebar|tobool %}
<div class="sidebar">
{{ agogo_sidebar() }}
</div>
{%- endif %}
<div class="document">
{%- block document %}
{{ super() }}
{%- endblock %}
</div>
{%- if theme_rightsidebar|tobool %}
<div class="sidebar">
{%- block sidebartoc %}
<h3>{{ _('Table Of Contents') }}</h3>
{{ toctree() }}
{%- endblock %}
{%- block sidebarsearch %}
<h3 style="margin-top: 1.5em;">{{ _('Search') }}</h3>
<form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" />
<input type="submit" value="{{ _('Go') }}" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
{{ _('Enter search terms or a module, class or function name.') }}
</p>
{%- endblock %}
{{ agogo_sidebar() }}
</div>
{%- endif %}
<div class="clearer"></div>
</div>
</div>
@@ -68,16 +76,20 @@ <h3 style="margin-top: 1.5em;">{{ _('Search') }}</h3>
<div class="footer-wrapper">
<div class="footer">
<div class="left">
{%- for rellink in rellinks|reverse %}
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
{%- if not loop.last %}{{ reldelim2 }}{% endif %}
{%- endfor %}
{%- if show_source and has_source and sourcename %}
<br/>
<a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">{{ _('Show Source') }}</a>
{%- endif %}
<div role="navigation" aria-label="related navigaton">
{%- for rellink in rellinks|reverse %}
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
{%- if not loop.last %}{{ reldelim2 }}{% endif %}
{%- endfor %}
</div>
<div role="note" aria-label="source link">
{%- if show_source and has_source and sourcename %}
<br/>
<a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">{{ _('Show Source') }}</a>
{%- endif %}
</div>
</div>

<div class="right">
@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- agogo theme.
*
* :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -97,7 +97,10 @@ h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink {
dt:hover > a.headerlink,
caption:hover > a.headerlink,
p.caption:hover > a.headerlink,
div.code-block-caption:hover > a.headerlink {
visibility: visible;
}

@@ -172,7 +175,11 @@ div.document {
}

div.body {
{%- if theme_rightsidebar|tobool %}
padding-right: 2em;
{%- else %}
padding-left: 2em;
{% endif %}
text-align: {{ theme_textalign }};
}

@@ -207,6 +214,23 @@ div.document div.highlight {
margin-bottom: .8em;
}

div.document div.literal-block-wrapper {
margin-top: .8em;
margin-bottom: .8em;
}

div.document div.literal-block-wrapper div.highlight {
margin: 0;
}

div.document div.code-block-caption span.caption-number {
padding: 0.1em 0.3em;
font-style: italic;
}

div.document div.code-block-caption span.caption-text {
}

div.document h2 {
margin-top: .7em;
}
@@ -223,6 +247,10 @@ div.document .descname {
font-weight: bold;
}

div.document .sig-paren {
font-size: larger;
}

div.document .docutils.literal {
background-color: #eeeeec;
padding: 1px;
@@ -245,8 +273,12 @@ div.document ol {
/* Sidebar */

div.sidebar {
width: {{ theme_sidebarwidth }};
width: {{ theme_sidebarwidth|todim }};
{%- if theme_rightsidebar|tobool %}
float: right;
{%- else %}
float: left;
{%- endif %}
font-size: .9em;
}

@@ -369,6 +401,20 @@ img.align-center, .figure.align-center, object.align-center {
text-align: right;
}

table caption span.caption-number {
font-style: italic;
}

table caption span.caption-text {
}

div.figure p.caption span.caption-number {
font-style: italic;
}

div.figure p.caption span.caption-text {
}

/* -- search page ----------------------------------------------------------- */

ul.search {
@@ -424,9 +470,14 @@ table.indextable td {
vertical-align: top;
}

table.indextable dl, table.indextable dd {
table.indextable ul {
margin-top: 0;
margin-bottom: 0;
list-style-type: none;
}

table.indextable > tbody > tr > td > ul {
padding-left: 0em;
}

table.indextable tr.pcap {
@@ -444,6 +495,13 @@ img.toggler {
cursor: pointer;
}

/* -- domain module index --------------------------------------------------- */

table.modindextable td {
padding: 2px;
border-collapse: collapse;
}

/* -- viewcode extension ---------------------------------------------------- */

.viewcode-link {
@@ -462,3 +520,20 @@ div.viewcode-block:target {
border-top: 1px solid #ac9;
border-bottom: 1px solid #ac9;
}

div.code-block-caption {
background-color: #ddd;
color: #333;
padding: 2px 5px;
font-size: small;
}

/* -- math display ---------------------------------------------------------- */

div.body div.math p {
text-align: center;
}

span.eqno {
float: right;
}
@@ -8,6 +8,7 @@ bodyfont = "Verdana", Arial, sans-serif
headerfont = "Georgia", "Times New Roman", serif
pagewidth = 70em
documentwidth = 50em
rightsidebar = false
sidebarwidth = 20em
bgcolor = #eeeeec
headerbg = url(bgtop.png) top left repeat-x
@@ -16,4 +17,4 @@ linkcolor = #ce5c00
headercolor1 = #204a87
headercolor2 = #3465a4
headerlinkcolor = #fcaf3e
textalign = justify
textalign = justify

0 comments on commit 0cca6ac

Please sign in to comment.
You can’t perform that action at this time.