Timmie, If you come up with a better solution let me know.
I have a rule in my Makefile that copies all of the *.rst files in my project tree to the source directory. Of course this means that all rst files must have a unique name. The html is built in a flat direcory so it makes sense that the names of the documentation source files must be unique. -Chip Timmie wrote: > Hello, > I have a program which includes a library > (python package): > > myprogram > myprogram/doc/source/index.rst > myprogram/script.py > myprogram/lib/mypackage > myprogram/lib/mypackage/doc/source/index.rst > >>From the main documentation in ``myprogram/doc`` > I would like to include the documentation of the > library into the builds. > Therefore, I tried to reference to > myprogram/lib/mypackage/doc/source/index.rst > > from > myprogram/doc/source/index.rst > > by > > .. toctree:: > :maxdepth: 3 > > ../../lib/mypackage/doc/source/index.rst > > But I get an error like: > > (WARNING/2) toctree references unknown document u'lib/mypackage/doc/ > source/index' > > What am I doing wrong here? > > Kind regards, > Timmie > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
