Skip to content

Commit

Permalink
Make searchbox default in theme.conf, edit example docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aunnnn committed Apr 18, 2019
1 parent 0eadd93 commit fbce296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,11 @@
# to template names.
#
# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself. Builtin themes are using these templates by
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
# 'searchbox.html']``.
# defined by theme itself.
#
html_sidebars = {'**': [
'util/searchbox.html',
'util/sidetoc.html'
]}
# The default `html_sidebars` of Press theme: ['util/searchbox.html', 'util/sidetoc.html']
#
html_sidebars = {'**': ['util/sidetoc.html']}


# -- Options for HTMLHelp output ---------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion sphinx_press_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
inherit = basic
stylesheet = css/theme.css # required by sphinx
pygments_style = paraiso-dark
sidebars = util/sidetoc.html
sidebars = util/searchbox.html, util/sidetoc.html

[options]
analytics_id =

0 comments on commit fbce296

Please sign in to comment.