Hi There,

Sorry to answer to myself !      
> 
> I'm trying to use intersphinx together with a hand-written 'missing-reference'
> callback at the same time. I'm using the following setup:
> 
> extensions = ['sphinx.ext.intersphinx']
> 
> intersphinx_mapping = {'http://docs.python.org/':
>     os.path.abspath(os.path.join(SAGE_DOC, 'common/python-inv.txt'))}
> 
> and finally
> 
> def setup(app):
>     app.connect('missing-reference', find_sage_dangling_links)
> 
> where the function find_sage_dangling_links is raising a warning when the link
> is not resolved. The problem is that intersphinx try to resolve the link only
> *after* find_sage_dangling_links raise the warning. So a warning is raised
> where it shouldn't ! Is there a way to connect find_sage_dangling_links after
> intersphinx in the pile or queue of connected callback. Should I unconnect
> intersphinx's 'missing-reference' and reconnect it after mine ?

It seem's that I didn't understand the way sphinx work: So here is a
rephrasing of my question:

I'd like to use both interphinx and a hand-made callback to
"missing-reference" to search for missing links in my documents.  Moreover,
I'd like to raise warning if the link is not resolved. The problem is that
the call to the callback connected to missing-reference is performed always
whenever or not the link is found by intersphinx... How can I raise a warning
only if neither intersphinx nor my hand-written function where able to resolve
the link ?

Thanks for any help,

Florent

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

Reply via email to