Replace less with sass

This commit is contained in:
Victor Zverovich
2024-05-26 19:59:42 -07:00
parent f4e1ec81e2
commit 4a368625e8
171 changed files with 10927 additions and 8213 deletions

View File

@@ -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