Skip to content

Commit ee761c3

Browse files
committed
Adding ReadTheDocs theme to Yajl Docs.
1 parent c1b8003 commit ee761c3

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

doc/source/conf.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313
import sys, os
14+
import sphinx_rtd_theme
1415

1516
# If extensions (or modules to document with autodoc) are in another directory,
1617
# add these directories to sys.path here. If the directory is relative to the
@@ -91,19 +92,21 @@
9192

9293
# The theme to use for HTML and HTML Help pages. Major themes that come with
9394
# Sphinx are currently 'default' and 'sphinxdoc'.
94-
html_theme = 'default'
95+
# html_theme = 'default'
9596
# html_theme = 'sphinxdoc'
97+
html_theme = "sphinx_rtd_theme"
9698

9799
# Theme options are theme-specific and customize the look and feel of a theme
98100
# further. For a list of options available for each theme, see the
99101
# documentation.
100-
#html_theme_options = {}
101-
html_theme_options = {
102-
"stickysidebar": "true",
103-
}
102+
html_theme_options = {}
103+
# html_theme_options = {
104+
# "stickysidebar": "true",
105+
# }
104106

105107
# Add any paths that contain custom themes here, relative to this directory.
106108
#html_theme_path = []
109+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
107110

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

doc_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sphinx_rtd_theme

0 commit comments

Comments
 (0)