Skip to content

Commit 2335939

Browse files
heitorlessabrettstack
authored andcommitted
docs: change Sphinx theme to ReadtheDocs (#606)
1 parent 0827fc1 commit 2335939

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

docs/conf.py

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3232
# ones.
3333
extensions = ['sphinx.ext.todo',
34-
'sphinx.ext.ifconfig',
35-
'sphinx.ext.viewcode',
36-
'sphinx.ext.githubpages']
34+
'sphinx.ext.ifconfig',
35+
'sphinx.ext.viewcode',
36+
'sphinx.ext.githubpages']
3737

3838
# Add any paths that contain templates here, relative to this directory.
3939
templates_path = ['_templates']
@@ -85,25 +85,29 @@
8585
# The theme to use for HTML and HTML Help pages. See the documentation for
8686
# a list of builtin themes.
8787
#
88-
html_theme = 'alabaster'
88+
html_theme = 'sphinx_rtd_theme'
8989

9090
# Theme options are theme-specific and customize the look and feel of a theme
9191
# further. For a list of options available for each theme, see the
9292
# documentation.
9393
#
94+
9495
html_theme_options = {
95-
'description': "Define your serverless infrastructure as a simple YAML file",
96-
'logo': 'logo.png',
97-
'logo_name': True,
98-
'logo_text_align': 'center',
99-
'github_user': 'awslabs',
100-
'github_repo': 'serverless-application-model',
101-
'github_button': True,
102-
'github_type': 'star',
103-
'github_banner': True,
104-
'sidebar_collapse': True,
10596
}
10697

98+
# html_theme_options = {
99+
# 'description': "Define your serverless infrastructure as a simple YAML file",
100+
# 'logo': 'logo.png',
101+
# 'logo_name': True,
102+
# 'logo_text_align': 'center',
103+
# 'github_user': 'awslabs',
104+
# 'github_repo': 'serverless-application-model',
105+
# 'github_button': True,
106+
# 'github_type': 'star',
107+
# 'github_banner': True,
108+
# 'sidebar_collapse': True,
109+
# }
110+
107111
# Add any paths that contain custom static files (such as style sheets) here,
108112
# relative to this directory. They are copied after the builtin static files,
109113
# so a file named "default.css" will overwrite the builtin "default.css".
@@ -116,9 +120,9 @@
116120
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
117121
html_sidebars = {
118122
'**': [
119-
'about.html',
120-
'navigation.html',
121-
'relations.html'
123+
'about.html',
124+
'navigation.html',
125+
'relations.html'
122126
]
123127
}
124128

@@ -180,7 +184,6 @@
180184
]
181185

182186

183-
184187
# -- Options for Epub output ----------------------------------------------
185188

186189
# Bibliographic Dublin Core info.
@@ -200,5 +203,3 @@
200203

201204
# A list of files that should not be packed into the epub file.
202205
epub_exclude_files = ['search.html']
203-
204-

0 commit comments

Comments
 (0)