문제

Let's imagine we have the following FireBreath call:

.. method:: Foo::Bar(std::vector)

As you may already understood the double colons interfere with the official Sphinx syntax and although it does show up, there is no link, associated with this method (i.e. it couldn't be accessed with :method: reference for example).

Adding escape symbol (\) didn't really help and although it still shows up, the link doesn't work. Is there any workaround or this is a unavoidable limitation of Sphinx platform?

도움이 되었습니까?

해결책

You should be able to use the C++ domain in Sphinx. Like this:

.. cpp:function:: Foo::Bar(std::vector)

A cross-reference to this method would look like this:

:cpp:func:`Foo::Bar`
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top