Skip to content

Commit 3afa471

Browse files
Poulter, RolandPoulter, Roland
Poulter, Roland
authored and
Poulter, Roland
committed
Change theme to sphinx-bootstrap-theme with yeti
1 parent cb99a9d commit 3afa471

File tree

3 files changed

+72
-10
lines changed

3 files changed

+72
-10
lines changed

docs/_templates/sourcelink.html

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{%- if show_source and has_source and sourcename %}
2-
<h3>{{ _('This Page') }}</h3>
3-
<ul class="this-page-menu">
2+
<!-- <h3>{{ _('This Page') }}</h3> -->
3+
<!-- <ul class="this-page-menu"> -->
4+
<ul class="nav navbar-nav navbar-right">
45
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
56
rel="nofollow">{{ _('Show Source') }}</a></li>
67
{%- if show_on_github_url %}
@@ -11,5 +12,10 @@ <h3>{{ _('This Page') }}</h3>
1112
<li><a href="{{ edit_on_github_url }}"
1213
rel="nofollow">{{ _('Edit on GitHub') }}</a></li>
1314
{%- endif %}
15+
<li>
16+
<a href="https://emccode.github.io">
17+
<i class="fa icon-emccode-logo"></i>
18+
</a>
19+
</li>
1420
</ul>
1521
{%- endif %}

docs/conf.py

+63-7
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414

1515
import sys
1616
import os
17-
import sphinx_rtd_theme
17+
import sphinx_bootstrap_theme
1818

19-
# import sphinx_bootstrap_theme
2019
#import shlex
2120

2221
# If extensions (or modules to document with autodoc) are in another directory,
@@ -115,15 +114,72 @@
115114

116115
# The theme to use for HTML and HTML Help pages. See the documentation for
117116
# a list of builtin themes.
118-
#html_theme = 'alabaster'
119-
html_theme = "sphinx_rtd_theme"
120-
# html_theme = 'bootstrap'
121-
# html_theme_path = sphinx_bootstrap_theme.get_html_theme_path(c:\python27\lib\site-packages)
117+
html_theme = 'bootstrap'
118+
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()#c:\python27\lib\site-packages)
122119

123120
# Theme options are theme-specific and customize the look and feel of a theme
124121
# further. For a list of options available for each theme, see the
125122
# documentation.
126-
#html_theme_options = {}
123+
html_theme_options = {
124+
# Navigation bar title. (Default: ``project`` value)
125+
'navbar_title': "RackHD",
126+
127+
# Tab name for entire site. (Default: "Site")
128+
'navbar_site_name': "RackHD",
129+
130+
# A list of tuples containing pages or urls to link to.
131+
# Valid tuples should be in the following forms:
132+
# (name, page) # a link to a page
133+
# (name, "/aa/bb", 1) # a link to an arbitrary relative url
134+
# (name, "http://example.com", True) # arbitrary absolute url
135+
# Note the "1" or "True" value above as the third argument to indicate
136+
# an arbitrary url.
137+
# 'navbar_links': [
138+
# ("Examples", "examples"),
139+
# ("Link", "http://example.com", True),
140+
# ],
141+
142+
# Render the next and previous page links in navbar. (Default: true)
143+
# 'navbar_sidebarrel': False,
144+
145+
# Render the current pages TOC in the navbar. (Default: true)
146+
# 'navbar_pagenav': False,
147+
148+
# Tab name for the current pages TOC. (Default: "Page")
149+
'navbar_pagenav_name': "Docs",
150+
151+
# Global TOC depth for "site" navbar tab. (Default: 1)
152+
# Switching to -1 shows all levels.
153+
# 'globaltoc_depth': 2,
154+
155+
# Include hidden TOCs in Site navbar?
156+
# Note: If this is "false", you cannot have mixed ``:hidden:`` and
157+
# non-hidden ``toctree`` directives in the same page, or else the build
158+
# will break.
159+
# Values: "true" (default) or "false"
160+
# 'globaltoc_includehidden': "false",
161+
162+
# HTML navbar class (Default: "navbar") to attach to <div> element.
163+
# For black navbar, do "navbar navbar-inverse"
164+
# 'navbar_class': "navbar navbar-inverse",
165+
166+
# Fix navigation bar to top of page?
167+
# Values: "true" (default) or "false"
168+
'navbar_fixed_top': "true",
169+
170+
# Location of link to source.
171+
# Options are "nav" (default), "footer" or anything else to exclude.
172+
'source_link_position': "nav",
173+
174+
# Bootswatch (http://bootswatch.com/) theme.
175+
# Options are nothing (default) or the name of a valid theme
176+
# such as "amelia", "cosmo", or "united".
177+
'bootswatch_theme': "yeti",
178+
179+
# Choose Bootstrap version.
180+
# Values: "3" (default) or "2" (in quotes)
181+
# 'bootstrap_version': "2",
182+
}
127183

128184
# Add any paths that contain custom themes here, relative to this directory.
129185
#html_theme_path = []

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ six==1.9.0
1717
snowballstemmer==1.2.0
1818
Sphinx==1.3.1
1919
sphinx-autobuild==0.5.2
20-
sphinx-rtd-theme==0.1.8
20+
sphinx-bootstrap-theme==0.4.8
2121
tornado==4.2.1
2222
watchdog==0.8.3

0 commit comments

Comments
 (0)