1. Georg Brandl
  2. sphinx
  3. Pull requests

Pull requests

#233 Open
Repository
bmearns
Branch
default
Repository
birkenfeld
Branch
default

Add config var to linkcode ext to change the text used for generated links.

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r default https://bitbucket.org/bmearns/sphinx
hg merge 71057f3ab129
hg commit -m 'Merged in bmearns/sphinx (pull request #233)'
Author
  1. Brian Mearns
Reviewers
Description

Add new linkcode_link_text config value which can be either a string or a callable used to generate the text for generated links. If value is callable, it will be called with same arguments as linkcode_resolve to get the text for each link. Otherwise it will be used directly. Either way, the result is passed to str to get the text for the link. Default is '[source]', so it is completely backwards compatible with previous version of the extension.

Comments (0)