On 26/09/2012 11:05 PM, Luca Delucchi wrote:
I already try something but I have to work on it.
Right now the simple way (that I see) to create a good html and pdf
(pdf only for one language) documentation is:
- rename index.rst to index.template and copy index.template to
index.rst during compilation (I already try it and it works well)
- create a index_pdf.template, copy it to index.rst and substitute a
variable to set the language required for PDF file during compilation
(I'm trying this but sed doesn't work)
what do you think about this solution?
This solution might be suitable, but I'm failing to understand the need to
rename index.rst
What is wrong with having a index_pdf.rst alongside index.rst?
because sphinx read index.rst and not index_pdf.rst. Your idea was
also mine but I discover that it doesn't work. If someone as a better
idea or working solution he is welkome
Ok, if you can't pass in the filename of the starting page into RST as a
parameter, then your suggestion above of replacing doc/index.rst above
makes sense. Please go ahead and implement if you wish.
Frank has been helping with the RST doc generation process, and might
have some suggestions too.
--
Cameron Shorter
Geospatial Solutions Manager
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254
Think Globally, Fix Locally
Geospatial Solutions enhanced with Open Standards and Open Source
http://www.lisasoft.com
_______________________________________________
Live-demo mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/live-demo
http://live.osgeo.org
http://wiki.osgeo.org/wiki/Live_GIS_Disc