mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 02:29:08 +00:00
Print less command
This commit is contained in:
parent
7a0b1d5781
commit
81d2b986af
10
doc/build.py
10
doc/build.py
@ -97,10 +97,12 @@ def build_docs(version='dev', **kwargs):
|
|||||||
'-Aversion=' + version, '-Aversions=' + ','.join(main_versions),
|
'-Aversion=' + version, '-Aversions=' + ','.join(main_versions),
|
||||||
'-b', 'html', doc_dir, html_dir])
|
'-b', 'html', doc_dir, html_dir])
|
||||||
try:
|
try:
|
||||||
check_call(['lessc', '--clean-css',
|
cmd = ['lessc', '--clean-css',
|
||||||
'--include-path=' + os.path.join(doc_dir, 'bootstrap'),
|
'--include-path=' + os.path.join(doc_dir, 'bootstrap'),
|
||||||
os.path.join(doc_dir, 'fmt.less'),
|
os.path.join(doc_dir, 'fmt.less'),
|
||||||
os.path.join(html_dir, '_static', 'fmt.css')])
|
os.path.join(html_dir, '_static', 'fmt.css')]
|
||||||
|
print("Running {}".format(cmd))
|
||||||
|
check_call(cmd)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno != errno.ENOENT:
|
if e.errno != errno.ENOENT:
|
||||||
raise
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user