File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ Incompatible changes
15
15
Deprecated
16
16
----------
17
17
18
+ * using a string value for :confval:`html_sidebars` is deprecated and only list
19
+ values will be accepted at 2.0.
20
+
18
21
Features added
19
22
--------------
20
23
Original file line number Diff line number Diff line change @@ -829,6 +829,10 @@ that use Sphinx's HTMLWriter class.
829
829
between the ``'sourcelink.html' `` and ``'searchbox.html' `` entries. This
830
830
is for compatibility with Sphinx versions before 1.0.
831
831
832
+ .. deprecated :: 1.7
833
+
834
+ a single string value for ``html_sidebars `` will be removed in 2.0
835
+
832
836
Builtin sidebar templates that can be rendered are:
833
837
834
838
* **localtoc.html ** -- a fine-grained table of contents of the current
Original file line number Diff line number Diff line change @@ -901,6 +901,11 @@ def has_wildcard(pattern):
901
901
# 0.x compatible mode: insert custom sidebar before searchbox
902
902
customsidebar = sidebars
903
903
sidebars = None
904
+ warnings .warn ('Now html_sidebars only allows list of sidebar '
905
+ 'templates as a value. Support for a string value '
906
+ 'will be removed at Sphinx-2.0.' ,
907
+ RemovedInSphinx20Warning )
908
+
904
909
ctx ['sidebars' ] = sidebars
905
910
ctx ['customsidebar' ] = customsidebar
906
911
You can’t perform that action at this time.
0 commit comments