Skip to content

Commit 244d0f1

Browse files
committed
DOC: add link to theory and matlab to sidebar
1 parent 1316618 commit 244d0f1

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

doc/_static/css/title.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.wy-side-nav-search>a, .wy-side-nav-search .wy-dropdown>a {
2+
font-family: "Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif;
3+
font-size: 200%;
4+
margin-top: .222em;
5+
margin-bottom: .202em;
6+
}
7+
.wy-side-nav-search {
8+
padding: 0;
9+
}
10+
form#rtd-search-form {
11+
margin-left: .809em;
12+
margin-right: .809em;
13+
}
14+
.rtd-nav a {
15+
float: left;
16+
display: block;
17+
width: 33.3%;
18+
height: 100%;
19+
padding-top: 7px;
20+
color: white;
21+
}
22+
.rtd-nav {
23+
overflow: hidden;
24+
width: 100%;
25+
height: 35px;
26+
margin-top: 15px;
27+
}
28+
.rtd-nav a:hover {
29+
background-color: #388bbd;
30+
}
31+
.rtd-nav a.active {
32+
background-color: #388bbd;
33+
}

doc/_template/layout.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% extends "!layout.html" %}
2+
{% block sidebartitle %}
3+
4+
<a href="{{ pathto(master_doc) }}"> {{ project }}</a>
5+
6+
{% include "searchbox.html" %}
7+
8+
<div class="rtd-nav">
9+
<a href="http://sfstoolbox.org/">Theory</a>
10+
<a href="http://matlab.sfstoolbox.org/">Matlab</a>
11+
<a class="active" href="http://python.sfstoolbox.org/">Python</a>
12+
</div>
13+
14+
{% endblock %}

doc/conf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
plot_pre_code = ""
7474

7575
# Add any paths that contain templates here, relative to this directory.
76-
templates_path = ['_templates']
76+
templates_path = ['_template']
7777

7878
# The suffix of source filenames.
7979
source_suffix = '.rst'
@@ -86,7 +86,7 @@
8686

8787
# General information about the project.
8888
authors = 'SFS Toolbox Developers'
89-
project = 'Sound Field Synthesis Toolbox'
89+
project = 'SFS Toolbox'
9090
copyright = '2017, ' + authors
9191

9292
# The version info for the project you're documenting, acts as replacement for
@@ -147,6 +147,10 @@
147147

148148
# -- Options for HTML output ----------------------------------------------
149149

150+
def setup(app):
151+
"""Include custom theme files to sphinx HTML header"""
152+
app.add_stylesheet('css/title.css')
153+
150154
# The theme to use for HTML and HTML Help pages. See the documentation for
151155
# a list of builtin themes.
152156
html_theme = 'sphinx_rtd_theme'

0 commit comments

Comments
 (0)