mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
18 lines
365 B
Python
18 lines
365 B
Python
#!/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)
|