Hi Miro,

short-example::

   extensions = []
   try:
       import sphinx.ext.mathjax
       extensions.append('sphinx.ext.mathjax')
   except ImportError:
       pass

Of course,  I think that it is good for you to update your Sphinx.

Regards,

--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa


2013/4/4 Miroslav ILIAĆ  <[email protected]>

> Dear experts,
>
> the problem with older installations of sphinx are missing some extensions;
>
> for example, this command (in conf.py file)
>
> "extensions.append('sphinx.ext.mathjax')"
>
> wants to add selected extension, but what is there is no such extension
> available ? Generating of documentation fails with
> "Extension error:
> Could not import extension sphinx.ext.mathjax (exception: No module named
> mathjax)"
>
> I would need some try-except scheme for checking of proper adding of
> extensions in conf.py file.
>
> Any help, please ?
>
> Miro
>
>  --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to