Can we do something with "exclude_patterns" in Sphinx configuration file to specify not to import certain files.
On Mar 9, 5:52 pm, Jonathan Hartley <tart...@tartley.com> wrote: > In your own code you could catch the ImportError around the import > statements. > > # these might not be installed when we are generating documentation > try: > import thirdpartymodule > except ImportError: > pass > > On 09/03/2011 01:25, Abacus Nerd wrote: > > > Hi, > > > I am trying to build documentation for my python project which imports > > some third party modules. > > My problem is that when I run "make html" Sphinx is not able to find > > those third party python modules and reports "ImportError" . Reason > > being third party modules are not present on the machine I m running > > Sphinx and I can't install third party tool on this machine just to > > have my documentation done. > > > Is there a way to avoid importing certain modules in Sphinx. Can we > > skip importing modules by providing some option in RST files ? > > > Thanks in advance !! > > -- > Jonathan Hartley tart...@tartley.com http://tartley.com > Made of meat. +44 7737 062 225 twitter/skype: tartley -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@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.