See http://sphinx.pocoo.org/config.html#confval-html_sidebars
Since the example says do this:
html_sidebars = {
'**': ['globaltoc.html', 'sourcelink.html', 'searchbox.html'],
'using/windows': ['windowssidebar.html', 'searchbox.html'],
}
I assume you should do:
html_sidebars = {
'**': ['localtoc.html',]
}
I made a change in my config.py
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars = {'localtoc.html'}
html_sidebars = { 'document_name' : [ 'list.html', 'of.html', 'template_names.html' ],'another_doc_name' : [ 'template_name.html' ] }
html_sidebars = { 'contents' : [ 'globaltoc.html' ],'content/*' : [ 'localtoc.html' ] }
Your assignment just creates a set with a single value: (['localtoc.html']), which Sphinx will deal with unpredictably.
Exception occurred:
File "/usr/lib/pymodules/python2.7/sphinx/builders/html.py", line
644, in add_sidebars
for pattern, patsidebars in self.config.html_sidebars.iteritems():
AttributeError: 'set' object has no attribute 'iteritems'