doc: Add support for images
This commit is contained in:
parent
720768330c
commit
3ef5003ace
|
@ -34,6 +34,11 @@ set(AWE_DOC_FILES
|
|||
${AWE_DOC_DIR}/02-contributing.md
|
||||
${SOURCE_DIR}/LICENSE)
|
||||
|
||||
set(AWE_DOC_IMAGES
|
||||
${AWE_DOC_DIR}/images/widgetlayout1.png
|
||||
${AWE_DOC_DIR}/images/widgetlayout2.png
|
||||
)
|
||||
|
||||
set(AWE_SRCS
|
||||
${BUILD_DIR}/awesome.c
|
||||
${BUILD_DIR}/banning.c
|
||||
|
@ -259,6 +264,9 @@ if(GENERATE_DOC)
|
|||
file(GLOB_RECURSE AWE_LUA_FILES ${BUILD_DIR}/lib/*.lua)
|
||||
file(GLOB_RECURSE AWE_MD_FILES ${AWE_DOC_DIR}/*.md)
|
||||
|
||||
# Copy the images to the build directory
|
||||
file(COPY ${SOURCE_DIR}/docs/images DESTINATION ${AWE_DOC_DIR})
|
||||
|
||||
# Run ldoc and make it fail if any warnings are generated. The
|
||||
# redirection-magic swaps stdout and stderr and awk exits with a non-zero
|
||||
# status if it sees at least one line of input.
|
||||
|
@ -342,6 +350,7 @@ install(DIRECTORY ${SOURCE_DIR}/themes DESTINATION ${AWESOME_DATA_PATH}
|
|||
install(DIRECTORY ${BUILD_DIR}/themes DESTINATION ${AWESOME_DATA_PATH}
|
||||
PATTERN "*.lua")
|
||||
install(FILES ${AWE_DOC_FILES} DESTINATION ${AWESOME_DOC_PATH})
|
||||
install(FILES ${AWE_DOC_IMAGES} DESTINATION ${AWESOME_DOC_PATH}/images)
|
||||
install(FILES "awesome.desktop" DESTINATION ${AWESOME_XSESSION_PATH})
|
||||
if(GENERATE_DOC)
|
||||
install(DIRECTORY ${BUILD_DIR}/doc DESTINATION ${AWESOME_DOC_PATH})
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 587 B |
Loading…
Reference in New Issue