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.
Reinout
--
Reinout van Rees - rei...@vanrees.org - http://reinout.vanrees.org
Programmer at http://www.nelen-schuurmans.nl
"Military engineers build missiles. Civil engineers build targets"
> Hi,
>
> 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.
What about the include directive?
Mike
Thanks, that works fine.
I completely forgot to look at restructuredtext itself :-)
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
I still have two windows colleagues, so... :-)
> 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.
I use the include directive now and it works fine:
http://reinout.vanrees.org/weblog/2010/12/08/include-external-in-sphinx.html