On Mon, Dec 06, 2010 at 02:47:07PM +0100, Reinout van Rees wrote: > In my project, I've got a doc/ subdirectory with the index.txt and > the rest of the documentation, so something like this: > > myproject/ > myproject/README.txt > myproject/setup.py > myproject/doc/ > myproject/doc/index.txt > myproject/doc/conf.py > > What I want: include the README.txt, CHANGES.txt, TODO.txt and so > on. But they're in the parent directory of my index.txt. > > What are my options? Just putting ../README in a toctree doesn't > seem to work.
I ended up creating symlinks to solve this. That's not portable, but I don't care about Windows support for that particular internal project. The other suggested solution with include directives sounds interesting. http://pypi.python.org/pypi/objgraph does something like that: index.txt includes snippets from README.txt, although I at the moment cheat by having my Sphinx directory be the project root. Marius Gedminas -- 2B OR NOT 2B == FF
signature.asc
Description: Digital signature