>From my research it doesn't appear that this works in Sphinx. What you can do though is create links or junctions under your source directory to make it look like source files are in a subdirectory of your project. That will allow Sphinx to consume them. You have to have admin rights in Windows to make a link, but not a junction, so that may be your best bet. Be aware though, that SVN doesn't support links/junctions on Windows, so if you use SVN, you need to be careful not to check in the junction. Instead check in the directory where your source files are. The command on windows is "mklink /j target source". This is the method I used for common files on Windows systems.
On Sunday, April 10, 2016 at 4:01:26 AM UTC-7, Sagiv Grupper wrote: > > Hi, > I configured Sphinx in a dedicated folder (using sphinx-quickstart), on my > local machine - for example c:\Documentation. > My python code is located in another folder for instance c:\dev > > I performed the following steps: > > 1. From the Sphinx folder (Documentation), I ran: "sphinx-apidoc -o . > c:\dev" command in order to create .rst files. > 2. Then I ran "make html" > > I received lots of ImportError messages. > Html files were created in the _build folder but they contained partial > data. > > I also tried to edit conf.py file (sys.path.insert(0, "c:\\dev")) but it > didn't help. > > The only way that I managed to generate the documentation, was when I > copied the source folder and located it under the Documentation folder. > > What can be the problem? > > Thanks for the help. > > Sagiv > > > > -- 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 https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
