mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Move CSS compilation to build.py for use by Travis
This commit is contained in:
parent
dd6a3bbc7c
commit
2e874af293
@ -4,12 +4,6 @@ if (NOT DOXYGEN)
|
|||||||
return ()
|
return ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_custom_command(OUTPUT html/_static/cppformat.css
|
add_custom_target(doc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.py)
|
||||||
COMMAND lessc --clean-css --include-path=${CMAKE_CURRENT_SOURCE_DIR}/bootstrap
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/cppformat.less html/_static/cppformat.css
|
|
||||||
DEPENDS cppformat.less)
|
|
||||||
|
|
||||||
add_custom_target(doc COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.py
|
|
||||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/_static/cppformat.css)
|
|
||||||
|
|
||||||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION share/doc/cppformat)
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION share/doc/cppformat)
|
||||||
|
@ -58,8 +58,8 @@ def build_docs():
|
|||||||
raise CalledProcessError(p.returncode, cmd)
|
raise CalledProcessError(p.returncode, cmd)
|
||||||
check_call(['sphinx-build', '-D', 'breathe_projects.format=doxyxml',
|
check_call(['sphinx-build', '-D', 'breathe_projects.format=doxyxml',
|
||||||
'-b', 'html', doc_dir, 'html'])
|
'-b', 'html', doc_dir, 'html'])
|
||||||
#check_call(['lessc', '--clean-css', '--include-path=bootstrap', 'cppformat.less',
|
check_call(['lessc', '--clean-css', '--include-path=' + os.path.join(doc_dir, 'bootstrap'),
|
||||||
# 'html/_static/cppformat.css'], cwd=doc_dir)
|
os.path.join(doc_dir, 'cppformat.less'), 'html/_static/cppformat.css'])
|
||||||
return 'html'
|
return 'html'
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user