updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / eclim / sphinx.patch
blob1945cdb7b58badbdd1c993c18a541890529c4675
1 commit faebd52f08f519b46ae5e6e9e12a96aa212f1a98
2 Author: ervandew <ervandew@gmail.com>
3 Date: Mon Jan 23 14:35:33 2012 -0800
5 update for sphinx 1.1.2
7 diff --git a/doc/extension/eclim/sphinx/builder.py b/doc/extension/eclim/sphinx/builder.py
8 index 0bdcc33..c3977fe 100644
9 --- a/src/doc/extension/eclim/sphinx/builder.py
10 +++ b/src/doc/extension/eclim/sphinx/builder.py
11 @@ -125,7 +125,8 @@ class EclimBuilder(StandaloneHTMLBuilder):
12 # EV: end main toc
14 # local TOC and global TOC tree
15 - toc = self.render_partial(self.env.get_toc_for(docname))['fragment']
16 + self_toc = self.env.get_toc_for(docname, self)
17 + toc = self.render_partial(self_toc)['fragment']
19 return dict(
20 parents = parents,
21 diff --git a/doc/extension/eclim/sphinx/environment.py b/doc/extension/eclim/sphinx/environment.py
22 index 0031fec..5113c4d 100644
23 --- a/src/doc/extension/eclim/sphinx/environment.py
24 +++ b/src/doc/extension/eclim/sphinx/environment.py
25 @@ -82,6 +82,12 @@ class EclimHtmlBuildEnvironment(EclimBuildEnvironment):
26 # find all toctree nodes in this section and add them
27 # to the toc (just copying the toctree node which is then
28 # resolved in self.get_and_resolve_doctree)
29 + if isinstance(sectionnode, addnodes.only):
30 + onlynode = addnodes.only(expr=sectionnode['expr'])
31 + blist = build_toc(sectionnode, depth)
32 + if blist:
33 + onlynode += blist.children
34 + entries.append(onlynode)
35 if not isinstance(sectionnode, nodes.section) or (main and title_visited):
36 for toctreenode in traverse_in_section(sectionnode,
37 addnodes.toctree):