Skip to content

Commit b00ff08

Browse files
committed
Merge pull request #16 from vighneshbirodkar/rtd
Swtiched to RTD theme in sphinx
2 parents 30710ef + 72dc956 commit b00ff08

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies:
2323
- sudo apt-get install build-essential python-dev python-setuptools
2424
# install numpy first as it is a compile time dependency for other packages
2525
- pip install --upgrade numpy
26-
- pip install --upgrade scipy matplotlib setuptools nose coverage sphinx pillow sphinx-gallery
26+
- pip install --upgrade scipy matplotlib setuptools nose coverage sphinx pillow sphinx-gallery sphinx_rtd_theme
2727
# Installing required packages for `make -C doc check command` to work.
2828
- sudo -E apt-get -yq update
2929
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra

doc/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import sys
1616
import os
1717

18+
import sphinx_rtd_theme
19+
1820
# If extensions (or modules to document with autodoc) are in another directory,
1921
# add these directories to sys.path here. If the directory is relative to the
2022
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -125,15 +127,15 @@
125127

126128
# The theme to use for HTML and HTML Help pages. See the documentation for
127129
# a list of builtin themes.
128-
html_theme = 'nature'
130+
html_theme = 'sphinx_rtd_theme'
129131

130132
# Theme options are theme-specific and customize the look and feel of a theme
131133
# further. For a list of options available for each theme, see the
132134
# documentation.
133135
#html_theme_options = {}
134136

135137
# Add any paths that contain custom themes here, relative to this directory.
136-
#html_theme_path = []
138+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
137139

138140
# The name for this set of Sphinx documents. If None, it defaults to
139141
# "<project> v<release> documentation".

0 commit comments

Comments
 (0)