Merge branch 'fix-images-in-doc' of https://github.com/awesomeWM/awesome
This commit is contained in:
commit
1ea3ba6f30
|
@ -34,13 +34,6 @@ set(AWE_DOC_FILES
|
||||||
${AWE_DOC_DIR}/02-contributing.md
|
${AWE_DOC_DIR}/02-contributing.md
|
||||||
${SOURCE_DIR}/LICENSE)
|
${SOURCE_DIR}/LICENSE)
|
||||||
|
|
||||||
if (GENERATE_DOC)
|
|
||||||
set(AWE_DOC_IMAGES
|
|
||||||
${AWE_DOC_DIR}/images/widgetlayout1.png
|
|
||||||
${AWE_DOC_DIR}/images/widgetlayout2.png
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(AWE_SRCS
|
set(AWE_SRCS
|
||||||
${BUILD_DIR}/awesome.c
|
${BUILD_DIR}/awesome.c
|
||||||
${BUILD_DIR}/banning.c
|
${BUILD_DIR}/banning.c
|
||||||
|
@ -267,7 +260,7 @@ if(GENERATE_DOC)
|
||||||
file(GLOB_RECURSE AWE_MD_FILES ${AWE_DOC_DIR}/*.md)
|
file(GLOB_RECURSE AWE_MD_FILES ${AWE_DOC_DIR}/*.md)
|
||||||
|
|
||||||
# Copy the images to the build directory
|
# Copy the images to the build directory
|
||||||
file(COPY ${SOURCE_DIR}/docs/images DESTINATION ${AWE_DOC_DIR})
|
file(COPY ${SOURCE_DIR}/docs/images DESTINATION ${BUILD_DIR}/doc)
|
||||||
|
|
||||||
# Run ldoc and make it fail if any warnings are generated. The
|
# 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
|
# redirection-magic swaps stdout and stderr and awk exits with a non-zero
|
||||||
|
@ -352,7 +345,6 @@ install(DIRECTORY ${SOURCE_DIR}/themes DESTINATION ${AWESOME_DATA_PATH}
|
||||||
install(DIRECTORY ${BUILD_DIR}/themes DESTINATION ${AWESOME_DATA_PATH}
|
install(DIRECTORY ${BUILD_DIR}/themes DESTINATION ${AWESOME_DATA_PATH}
|
||||||
PATTERN "*.lua")
|
PATTERN "*.lua")
|
||||||
install(FILES ${AWE_DOC_FILES} DESTINATION ${AWESOME_DOC_PATH})
|
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})
|
install(FILES "awesome.desktop" DESTINATION ${AWESOME_XSESSION_PATH})
|
||||||
if(GENERATE_DOC)
|
if(GENERATE_DOC)
|
||||||
install(DIRECTORY ${BUILD_DIR}/doc DESTINATION ${AWESOME_DOC_PATH})
|
install(DIRECTORY ${BUILD_DIR}/doc DESTINATION ${AWESOME_DOC_PATH})
|
||||||
|
|
|
@ -75,7 +75,7 @@ Code:
|
||||||
|
|
||||||
|
|
||||||
Result:
|
Result:
|
||||||
![Example2 screenshot](../../docs/images/widgetlayout1.png)
|
![Example2 screenshot](../images/widgetlayout1.png)
|
||||||
|
|
||||||
|
|
||||||
## Use an `wibox.layout.align` layout
|
## Use an `wibox.layout.align` layout
|
||||||
|
@ -114,7 +114,7 @@ Code:
|
||||||
}
|
}
|
||||||
|
|
||||||
Result:
|
Result:
|
||||||
![Example4 screenshot](../../docs/images/widgetlayout2.png)
|
![Example4 screenshot](../images/widgetlayout2.png)
|
||||||
|
|
||||||
For more information about how to draw widgets, refer to the `Cairo` api:
|
For more information about how to draw widgets, refer to the `Cairo` api:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue