Jonathan,
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)
supplements\dbase\grdraster.1 { } IOError: [Errno 2] No such file or
directory:
'c:\\progs_cygw\\GMTdev\\gmt5\\trunk\\doc\\rst\\build\\man\\supplements\\dbase\\grdraster.1'
Unable to open destination file for writing
('c:\progs_cygw\GMTdev\gmt5\trunk\doc\rst\build\man\supplements\dbase\grdraster.1').
Exiting.
Thanks again
Joaquim
Quinta-feira, 28 de Fevereiro de 2013 16:06:16 UTC, Jonathan Waltman
escreveu:
>
> > How do we do to create separate .man files?
>
> You can specify individual man pages to build via the
> "man_pages" configuration variable in your conf.py.
>
> Adding something like this in your conf.py should do the trick:
>
> import glob
> man_pages = []
> for f in glob.glob('*.rst') + glob.glob('*/*.rst'):
> man_pages.append((
> f[:-4], # source file (no extension)
> f[:-4].replace('/', '-'), # output file (under output dir)
> 'description of %s' % f, # description
> 'A. Author', # author
> 1, # section
> ))
>
> Cheers,
> 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.