Hi,

desc_directive was removed at Sphinx-0.6.
I think you can use this code ...maybe:

from sphinx.domains.std import GenericObject
interpreted = GenericObject('function', arguments, options, text,
                          lineno, content_offset, text, state,
                          state_machine).run()

refs:

changed: desc_directive -> GenericDesc:
https://bitbucket.org/birkenfeld/sphinx/commits/ee9c015

changed: GenericDesc -> GenericObject
https://bitbucket.org/birkenfeld/sphinx/commits/7be
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa


2013/1/16 klo uo <[email protected]>:
> Hi,
>
> I'm trying to output documentation from older code (4 year old), and I get
> error about invalid import:
>
>     from sphinx.directives import desc_directive
>
> I use Sphinx 1.1.3 and I see no trace of "desc_directive" module.
>
> This module is later used like this:
>
>     interpreted = desc_directive('function', arguments, options, text,
>                                   lineno, content_offset, text, state,
>                                   state_machine)
>
> Any pointers how to make something from this?
>
> TIA
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
>
>

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


Reply via email to