Is there any way to reference module member when I use automodule?

1 view
Skip to first unread message

Alexander Artemenko

unread,
Sep 7, 2009, 9:08:34 AM9/7/09
to sphinx-dev
For example, in one of my documents I have:

.. automodule:: blabla.decorators
:members:

Next, in another module, I want to reference a decorator 'foo' from
blabla.decorators. How to write such :ref:`????` contruction?

Georg Brandl

unread,
Sep 7, 2009, 2:54:20 PM9/7/09
to sphin...@googlegroups.com
Alexander Artemenko schrieb:

You can use the usual Python reference roles, in this case probably
:func:`blabla.decorators.name`.

cheers,
Georg

Alexander Artemenko

unread,
Sep 8, 2009, 4:41:18 AM9/8/09
to sphin...@googlegroups.com
Hello,

2009/9/7 Georg Brandl <ge...@python.org>:

Wow, it works! Thank you!

--
Alexander Artemenko (a.k.a. Svetlyak 40wt)
Blog: http://aartemenko.com
Photos: http://svetlyak.ru
Jabber: svetly...@gmail.com

Reply all
Reply to author
Forward
0 new messages