From 3ef5003acedf57a3b2fe5a40587e3351da4e3860 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 4 Feb 2016 22:42:54 -0500 Subject: [PATCH] doc: Add support for images --- CMakeLists.txt | 11 ++++++++++- docs/images/widgetlayout1.png | Bin 0 -> 1038 bytes docs/images/widgetlayout2.png | Bin 0 -> 587 bytes 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 docs/images/widgetlayout1.png create mode 100644 docs/images/widgetlayout2.png diff --git a/CMakeLists.txt b/CMakeLists.txt index 762084298..e0372467f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. @@ -341,7 +349,8 @@ install(DIRECTORY ${SOURCE_DIR}/themes DESTINATION ${AWESOME_DATA_PATH} PATTERN "*.lua" EXCLUDE) install(DIRECTORY ${BUILD_DIR}/themes DESTINATION ${AWESOME_DATA_PATH} 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}) if(GENERATE_DOC) install(DIRECTORY ${BUILD_DIR}/doc DESTINATION ${AWESOME_DOC_PATH}) diff --git a/docs/images/widgetlayout1.png b/docs/images/widgetlayout1.png new file mode 100644 index 0000000000000000000000000000000000000000..309407859b4bebb88539c25a72d0ffa8350bf95b GIT binary patch literal 1038 zcmV+p1o8WcP)m<0Ogu2zGOSGtiT@nkrq~)bR5&wpy>7h%vmC?aqD@ST5 z&OIHT2cNm-rZ}Hxy6=l2+jqbHe!uN``0Uy5d9*m4&bja35ki=!(&aLH3K_&|_5_3w zNzBg97(b}XRcZX7#yDj51cVU6P?CB=h|D6Xmj)CCMTv9Y+?i~rF7^Z2bTK6LQY|JR z_Bt>8eiVg@3V_Z|6oor?04gd_6#V`@8B{{haOy|CaTB{CskhG!3;?*@0QL3yU$rtg zXx6+$%2_P>P3(rGo`Lf7>FQ#Bo=}MXeo9M|w0Ah@=^+px5a7iN9F90`)Le7BvDv7u zW_6XSDspqFtkj=P&{cxthq5w0ek2l+LyPp}bTT^1;vyp>oH~`L2t0Ve(h}3tl$Yy8 zMIjR5>sQX7*DGExKYkF281**HAgQ-E;zr4%N8GqUYb$kiG&IoNoum_=kE>T{YoooL zD_8LO;}+alak~kJ86MtNSJ$s|=)XO|=fmUS@@1NuVxRi; zi(oLxJadM#XXES+ z2Z=?lQcf{-m)!Uf68$g`ptx9Xxw=YDPHda#`@tYZMdapUv9P>MFi1&BoDnA`aJhK) zj7yg&EoE+wzCNy9%ZayawE%8;# zv$Hdb68pn;VS(~;LLnRu{C)}xw=60O4hNwS1qFQjrXA?l*Yofpr%#ie&H6f4>!y~- z^?D*T)J!>cOk0~#BX9Qx2C&&^Y2oc#!eQRLp}Cp7yd5m+sgbvR9*;!ce)s%2ckg1i zbMz>O59@U`@(wmhJp=Xk19Wz7H}BrP188XA!Ucf$@8dU9)6H(@^=p9MUhH$=;$CnpIf&W8%tCKt$6#kwp9U}jX!_L%HsZgqi1e9`H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