3
# generates REST man pages docs/rest/<category>.txt
4
# (c) The GRASS Development Team, Markus Neteler, Glynn Clements 2003, 2004, 2005, 2006, 2009
10
from build_rest import *
14
#write separate module pages:
16
#for all module groups:
18
modclass = sys.argv[2]
20
filename = modclass + ".txt"
22
f = open(filename + ".tmp", 'wb')
24
write_rest_header(f, "GRASS GIS %s Reference Manual: %s" % (grass_version, modclass))
25
if modclass.lower() not in ['general', 'misc', 'postscript']:
26
f.write(modclass_intro_tmpl.substitute(modclass = modclass, modclass_lower = modclass.lower()))
27
f.write(modclass_tmpl.substitute(modclass = modclass))
30
for cmd in rest_files(cls):
31
basename = os.path.splitext(cmd)[0]
32
desc = check_for_desc_override(basename)
35
f.write(desc2_tmpl.substitute(basename = basename,
38
write_rest_footer(f, "index.txt")
41
replace_file(filename)