> Thanks a lot. It works fine ... but only for the base directory. We have
> also other .rst files under (for example)
>
> source/supplements/dbase
>
> and it fails because tries to reproduce this directory tree in the build
> dir. i.e (Windows + MinGW here)

That little script I gave you was more of an example than a
definitive solution :)

It didn't handle Windows style file paths (i.e. / vs \)
Here's a more platform independent version:

import os
man_pages = []
for dirpath, dirnames, filenames in os.walk('.'):
    for f in filenames:
        if f.endswith('.rst'):
            srcfile = os.path.normpath(os.path.join(dirpath, f[:-4]))
            outfile = srcfile.replace(os.sep, '-')
            man_pages.append((srcfile,
                              outfile,
                              'description of %s' % outfile,
                             'A. Author', 1))


--
Jonathan Waltman

-- 
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 http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to