On Fri, Jan 1, 2010 at 5:12 PM, Georg Brandl <g.bra...@gmx.net> wrote:
> For the next Sphinx release (1.0), I have added an extension to do
> exactly this, named "extlinks".  See this page for usage info:
> http://sphinx.pocoo.org/latest/ext/extlinks.html

What would you think of changing the link expansions to a *pattern*
instead of a *prefix*?

Currently, if I want to use extlinks with links of the form
``http://example.com/ticket/1234/raw/``  them I'm out of luck. I'd be
easy enough to make the expansion a pattern, either using ``%s``
formatting::

    extlinks = {'issue': ('http://exmaple.com/ticket/%s/raw/', 'issue ')}

or new-style bracket formatting::

    extlinks = {'issue': ('http://exmaple.com/ticket/{0}/raw/', 'issue ')}

Thoughts?

Jacob

--

You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.


Reply via email to