Only directive does not exclude content from index (or doctrees)
I'm documenting a multi-programming language API using Sphinx. I have the project setup so that it has "master" pages that use the only directive to pull in the correct content, i.e:
This works to properly select the correct content, but when a search is executed using the HTML output search function, Python results are included no matter what the tag controlling the only directive is set to:
Leap.Frame.current_frames_per_second (Python attribute, in Frame) Leap.Controller.POLICY_BACKGROUND_FRAMES (Python data, in Controller)
Likewise, using only with toctree doesn't work, all toctree directives are included
So it seems that even though the rat content is excluded from the output, other facets of the content are not properly excluded.
A discussion of the same/related problems: https://groups.google.com/forum/#!topic/sphinx-users/Zrh7T5y4FVY
My docs as Html for more examples: https://developer.leapmotion.com/documentation/python/index.html