File: build_all_html.py

package info (click to toggle)
rocketcea 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,944 kB
  • sloc: fortran: 23,152; python: 9,235; pascal: 370; makefile: 168; sh: 9
file content (21 lines) | stat: -rw-r--r-- 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
Build all of the sphinx HTML files.

First "touch" all *.rst files to put them "out-of-date".
then run "sphinx-build" command

"""

import sys, os, glob
import subprocess

fileL = glob.glob( os.path.join(os.curdir,'*.rst') )

for fname in fileL:
    os.utime(fname, None)
    
command = "sphinx-build -b html -d _build/doctrees  . _build/html"

print command
subprocess.call(command.split())