Skip to content

Commit e61de60

Browse files
committed
modified styles
1 parent 5b3b33d commit e61de60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+5488
-2
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""Sphinx ReadTheDocs theme.
2+
3+
From https://github.com/ryan-roemer/sphinx-bootstrap-theme.
4+
5+
"""
6+
import os
7+
8+
VERSION = (0, 1, 5)
9+
10+
__version__ = ".".join(str(v) for v in VERSION)
11+
__version_full__ = __version__
12+
13+
14+
def get_html_theme_path():
15+
"""Return list of HTML theme paths."""
16+
cur_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
17+
return cur_dir
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<div class="navigation" role="navigation" aria-label="breadcrumbs navigation">
2+
<ul class="wy-breadcrumbs">
3+
<li><a href="{{ pathto(master_doc) }}">Documentation</a> &raquo;</li>
4+
{% for doc in parents %}
5+
<li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &raquo;</li>
6+
{% endfor %}
7+
<li>{{ title }}</li>
8+
<li class="wy-breadcrumbs-aside">
9+
{% if display_github %}
10+
<a href="https://github.com/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}.rst" class="fa fa-github"> Edit on GitHub</a>
11+
{% elif display_bitbucket %}
12+
<a href="https://bitbucket.org/{{ bitbucket_user }}/{{ bitbucket_repo }}/src/{{ bitbucket_version}}{{ conf_py_path }}{{ pagename }}.rst" class="fa fa-bitbucket"> Edit on Bitbucket</a>
13+
{% elif show_source and has_source and sourcename %}
14+
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> View page source</a>
15+
{% endif %}
16+
</li>
17+
</ul>
18+
<hr/>
19+
</div>
20+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<footer>
2+
{% if next or prev %}
3+
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
4+
{% if next %}
5+
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}"/>Next <span class="fa fa-arrow-circle-right"></span></a>
6+
{% endif %}
7+
{% if prev %}
8+
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}"><span class="fa fa-arrow-circle-left"></span> Previous</a>
9+
{% endif %}
10+
</div>
11+
{% endif %}
12+
13+
<hr/>
14+
15+
<div role="contentinfo">
16+
<p>
17+
</p>
18+
</div>
19+
20+
{% trans %}<a href="https://github.com/snide/sphinx_rtd_theme">Sphinx theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>{% endtrans %}
21+
</footer>
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{# TEMPLATE VAR SETTINGS #}
2+
{%- set url_root = pathto('', 1) %}
3+
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
4+
{%- if not embedded and docstitle %}
5+
{%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
6+
{%- else %}
7+
{%- set titlesuffix = "" %}
8+
{%- endif %}
9+
10+
{% set css_files = css_files + ['_static/css/ribbon.css','_static/css/font-awesome-4.1.0/css/font-awesome.min.css','_static/css/menu.css'] %}
11+
12+
<!DOCTYPE html>
13+
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
14+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
15+
<head>
16+
<meta charset="utf-8">
17+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
18+
{% block htmltitle %}
19+
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
20+
{% endblock %}
21+
22+
{# FAVICON #}
23+
{% if favicon %}
24+
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
25+
{% endif %}
26+
27+
{# CSS #}
28+
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
29+
30+
{# OPENSEARCH #}
31+
{% if not embedded %}
32+
{% if use_opensearch %}
33+
<link rel="search" type="application/opensearchdescription+xml" title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}" href="{{ pathto('_static/opensearch.xml', 1) }}"/>
34+
{% endif %}
35+
36+
{% endif %}
37+
38+
{# RTD hosts this file, so just load on non RTD builds #}
39+
{% if not READTHEDOCS %}
40+
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
41+
{% endif %}
42+
43+
{% for cssfile in css_files %}
44+
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
45+
{% endfor %}
46+
47+
{%- block linktags %}
48+
{%- if hasdoc('about') %}
49+
<link rel="author" title="{{ _('About these documents') }}"
50+
href="{{ pathto('about') }}"/>
51+
{%- endif %}
52+
{%- if hasdoc('genindex') %}
53+
<link rel="index" title="{{ _('Index') }}"
54+
href="{{ pathto('genindex') }}"/>
55+
{%- endif %}
56+
{%- if hasdoc('search') %}
57+
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}"/>
58+
{%- endif %}
59+
{%- if hasdoc('copyright') %}
60+
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}"/>
61+
{%- endif %}
62+
<link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}"/>
63+
{%- if parents %}
64+
<link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"/>
65+
{%- endif %}
66+
{%- if next %}
67+
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"/>
68+
{%- endif %}
69+
{%- if prev %}
70+
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/>
71+
{%- endif %}
72+
{%- endblock %}
73+
{%- block extrahead %} {% endblock %}
74+
75+
{# Keep modernizr in head - http://modernizr.com/docs/#installing #}
76+
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
77+
78+
</head>
79+
80+
<body class="wy-body-for-nav" role="document">
81+
82+
<div class="wy-grid-for-nav">
83+
84+
{# SIDE NAV, TOGGLES ON MOBILE #}
85+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
86+
<div class="wy-side-nav-search">
87+
<a href="{{ pathto(master_doc) }}"> {{ project }}</a>
88+
{% include "searchbox.html" %}
89+
</div>
90+
91+
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
92+
{% set toctree = toctree(maxdepth=2, collapse=False, includehidden=True) %}
93+
{% if toctree %}
94+
{{ toctree }}
95+
{% else %}
96+
<!-- Local TOC -->
97+
<div class="local-toc">{{ toc }}</div>
98+
{% endif %}
99+
</div>
100+
&nbsp;
101+
</nav>
102+
103+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
104+
105+
{# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
106+
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
107+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
108+
<a href="{{ pathto(master_doc) }}">{{ project }}</a>
109+
</nav>
110+
111+
112+
{# PAGE CONTENT #}
113+
<div class="wy-nav-content">
114+
<div class="rst-content">
115+
{% include "breadcrumbs.html" %}
116+
<div role="main">
117+
{% block body %}{% endblock %}
118+
</div>
119+
{% include "footer.html" %}
120+
</div>
121+
</div>
122+
123+
</section>
124+
125+
</div>
126+
{% include "versions.html" %}
127+
128+
{% if not embedded %}
129+
130+
<script type="text/javascript">
131+
var DOCUMENTATION_OPTIONS = {
132+
URL_ROOT:'{{ url_root }}',
133+
VERSION:'{{ release|e }}',
134+
COLLAPSE_INDEX:false,
135+
FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
136+
HAS_SOURCE: {{ has_source|lower }}
137+
};
138+
</script>
139+
{%- for scriptfile in script_files %}
140+
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
141+
{%- endfor %}
142+
143+
{% endif %}
144+
145+
{# RTD hosts this file, so just load on non RTD builds #}
146+
{% if not READTHEDOCS %}
147+
<script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
148+
{% endif %}
149+
150+
{# STICKY NAVIGATION #}
151+
{% if theme_sticky_navigation %}
152+
<script type="text/javascript">
153+
jQuery(function () {
154+
SphinxRtdTheme.StickyNav.enable();
155+
});
156+
</script>
157+
{% endif %}
158+
159+
{%- block footer %} {% endblock %}
160+
161+
</body>
162+
</html>

0 commit comments

Comments
 (0)