Skip to content

Commit

Permalink
Include links to Matlab and Python in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Apr 12, 2018
1 parent 25b04b6 commit 414c1be
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
33 changes: 29 additions & 4 deletions _static/css/title.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
.icon-home::before {
display: none;
}
.wy-side-nav-search>a, .wy-side-nav-search .wy-dropdown>a {
font-family: "Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif;
font-size: 200%;
margin-bottom: .404em;
margin-top: .222em;
margin-bottom: .202em;
}
.wy-side-nav-search {
padding: 0;
}
form#rtd-search-form {
margin-left: .809em;
margin-right: .809em;
}
.rtd-nav a {
float: left;
display: block;
width: 33.3%;
height: 100%;
padding-top: 7px;
color: white;
}
.rtd-nav {
overflow: hidden;
width: 100%;
height: 35px;
margin-top: 15px;
}
.rtd-nav a:hover {
background-color: #388bbd;
}
.rtd-nav a.active {
background-color: #388bbd;
}
14 changes: 14 additions & 0 deletions _template/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends "!layout.html" %}
{% block sidebartitle %}

<a href="{{ pathto(master_doc) }}"> {{ project }}</a>

{% include "searchbox.html" %}

<div class="rtd-nav">
<a class="active" href="{{ pathto('index') }}">Theory</a>
<a href="http://matlab.sfstoolbox.org">Matlab</a>
<a href="http://python.sfstoolbox.org">Python</a>
</div>

{% endblock %}
1 change: 1 addition & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def setup(app):

html_theme = "sphinx_rtd_theme"
html_static_path = ['_static']
templates_path = ['_template']
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme_options = {'display_version': True}
html_title = "SFS Toolbox"
Expand Down

0 comments on commit 414c1be

Please sign in to comment.