1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Fixed :mod:`~cloud_sptheme.ext.index_styling` extension
to be compatible with Sphinx 1.4
Origin: upstream, https://bitbucket.org/ecollins/cloud_sptheme/commits/b4c2692088fc3311c3c02f1669df27eab459050d
Author: Eli Collins <elic@assurancetechnologies.com>
Last-Update: 2016-04-08
--- a/doc/sphinxman/source/cloud_sptheme/ext/index_styling.py
+++ b/doc/sphinxman/source/cloud_sptheme/ext/index_styling.py
@@ -49,8 +49,11 @@
fmt = format_index_name
for key, entries in ctx['genindexentries']:
for idx, entry in enumerate(entries):
- name, (links, subitems) = entry
- entries[idx] = fmt(name), (links, subitems)
+ name, data = entry
+ entries[idx] = fmt(name), data
+ # NOTE: data is list of [links, subitems, some_key],
+ # though 'key' not added until sphinx 1.4 (1.3?)
+ subitems = data[1]
for idx, entry in enumerate(subitems):
name, links = entry
subitems[idx] = fmt(name), links
|