mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-25 03:39:56 +01:00
Replace less with sass
This commit is contained in:
@@ -107,14 +107,13 @@ def build_docs(version='dev', **kwargs):
|
||||
'-Aversion=' + version, '-Aversions=' + ','.join(main_versions),
|
||||
'-b', 'html', doc_dir, html_dir])
|
||||
try:
|
||||
check_call(['lessc', '--verbose', '--clean-css',
|
||||
'--include-path=' + os.path.join(doc_dir, 'bootstrap'),
|
||||
os.path.join(doc_dir, 'fmt.less'),
|
||||
check_call(['sass',
|
||||
os.path.join(doc_dir, 'fmt.scss'),
|
||||
os.path.join(html_dir, '_static', 'fmt.css')])
|
||||
except OSError as e:
|
||||
if e.errno != errno.ENOENT:
|
||||
raise
|
||||
print('lessc not found; make sure that Less (http://lesscss.org/) ' +
|
||||
print('sass not found; make sure that sass (https://sass-lang.com/) ' +
|
||||
'is installed')
|
||||
sys.exit(1)
|
||||
return html_dir
|
||||
|
||||
Reference in New Issue
Block a user