Skip to content

Commit 8fb309f

Browse files
committed
DOC: add links to theory and python in sidebar
1 parent 55a2f44 commit 8fb309f

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
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 class="active" href="http://matlab.sfstoolbox.org/">Matlab</a>
11+
<a href="http://python.sfstoolbox.org/">Python</a>
12+
</div>
13+
14+
{% endblock %}

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@
4848
def setup(app):
4949
"""Include custom theme files to sphinx HTML header"""
5050
app.add_stylesheet('css/abbr.css')
51+
app.add_stylesheet('css/title.css')
5152

5253
html_theme = "sphinx_rtd_theme"
5354
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
5455
html_static_path = ['_static']
56+
templates_path = ['_template']
5557
html_title = "SFS Toolbox"
5658
html_short_title = ""
5759
htmlhelp_basename = 'sfs-matlab'

0 commit comments

Comments
 (0)