ext.extlinks: Angle brackets in link caption?

9 views
Skip to first unread message

Théo Delrieu

unread,
May 15, 2019, 6:16:20 AM5/15/19
to sphinx-users
Hello, I'm currently documenting a C++ API using Concepts.

I have defined the following in my conf.py:

extlinks = {
    'iterconcept': ('https://en.cppreference.com/w/cpp/experimental/ranges/iterator/%s', 'std::'),
}

This works fine for concepts with single template parameter:

>:iterconcept:`RandomAccessIterator`

However, when there is more than one parameter, it fails horribly:

>:iterconcept:`Sentinel<I> <Sentinel>`


I tried to escape the first angle brackets with backslashes, with no success.

My goal is to get the correct link with std::Sentinel<I> rendered.

Am I missing something obvious?

Thanks,
Theo
Reply all
Reply to author
Forward
0 new messages