File: make_docs.py

package info (click to toggle)
simplejson 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 808 kB
  • ctags: 424
  • sloc: ansic: 2,143; python: 2,068; makefile: 58
file content (17 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
import os
import subprocess
import shutil

SPHINX_BUILD = 'sphinx-build'

DOCTREES_DIR = 'build/doctrees'
HTML_DIR = 'docs'
for dirname in DOCTREES_DIR, HTML_DIR:
    if not os.path.exists(dirname):
        os.makedirs(dirname)

res = subprocess.call([
    SPHINX_BUILD, '-d', DOCTREES_DIR, '-b', 'html', '.', 'docs',
])
raise SystemExit(res)