File: build_index_rest.py

package info (click to toggle)
grass 8.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 276,996 kB
  • sloc: ansic: 460,768; python: 227,594; cpp: 42,026; sh: 11,162; makefile: 7,007; xml: 3,642; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (24 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3

# generates docs/rest/index.txt
# (C) 2003-2012 Markus Neteler and the GRASS Development Team
# Authors:
#   Markus Neteler
#   Glynn Clements
#   Luca Delucchi

import os

from build_rest import *

os.chdir(rest_dir)

filename = "index.txt"
f = open(filename + ".tmp", "w")

write_rest_header(f, "GRASS GIS %s Reference Manual" % grass_version, True)
write_rest_cmd_overview(f)
write_rest_footer(f, "index.txt")

f.close()
replace_file(filename)