Thanks for the answer!
On Sun, Feb 16, 2020 at 5:43 AM Komiya Takeshi wrote:
>
> I'm still not familiar with structure of toctree. But it seem caption
> is expanded in sphinx/environment/adapters/toctree.py.
> So you might be able to modify the generated doctree.
Yes, it looks like I should try to somehow intercept the call to
TocTree.resolve() in this file.
I didn't find a proper extension mechanism, though.
For now, I've monkey-patched the TocTree.resolve() method, see my
update at
https://github.com/spatialaudio/nbsphinx/pull/392.
This seems to work fine.
If somebody knows a better way to do this, please let me know!
> I feel toctree structure is too complicated. So it is better to
> refactor before adding feature. So any proposals are welcome!
I agree that it's complicated!
But I have no idea how to make it less complicated.
I really don't understand how all those pieces work together ...
But I think I'm fine with a somewhat hacky solution using the current
structure. It's probably not worth refactoring as long as it keeps
working ...
cheers,
Matthias
> Thanks,
> Takeshi KOMIYA
>
> 2020年2月15日(土) 4:52 Matthias Geier: