aboutsummaryrefslogtreecommitdiffstats
path: root/docbook
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2021-07-28 10:23:50 -0700
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-07-30 21:05:37 +0000
commitb58edf3cb8bc56f09b2011df931a3fa5e40c66ce (patch)
tree8780eb97263db07a4de4468bfdce2c3389d71797 /docbook
parentd886837df96a15a0af5bc1c6955e2bddb1cff8ea (diff)
Docs: Add epub targets for the guides.
Add user_guide_epub and developer_guide_epub targets that generate EPUB versions of the User's Guide and Developer's Guide. Ping #17494.
Diffstat (limited to 'docbook')
-rw-r--r--docbook/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/docbook/CMakeLists.txt b/docbook/CMakeLists.txt
index fa4623b0ba..6ae743c4ed 100644
--- a/docbook/CMakeLists.txt
+++ b/docbook/CMakeLists.txt
@@ -396,6 +396,18 @@ if(ASCIIDOCTOR_FOUND AND ASCIIDOCTOR_PDF_EXECUTABLE)
add_dependencies(user_guides user_guide_pdf)
endif()
+if(ASCIIDOCTOR_FOUND AND ASCIIDOCTOR_EPUB_EXECUTABLE)
+ ASCIIDOCTOR2EPUB(user-guide.adoc ${WSUG_SOURCE} ${WSUG_BUILT_DEPS})
+
+ add_custom_target(
+ user_guide_epub
+ DEPENDS
+ user-guide.epub
+ )
+ set_docbook_target_properties(user_guide_epub)
+ add_dependencies(user_guides user_guide_epub)
+endif()
+
# Developer's Guide chain.
if(ASCIIDOCTOR_FOUND AND XSLTPROC_EXECUTABLE)
XML2HTML(
@@ -436,6 +448,18 @@ if(ASCIIDOCTOR_FOUND AND ASCIIDOCTOR_PDF_EXECUTABLE)
add_dependencies(developer_guides developer_guide_pdf)
endif()
+if(ASCIIDOCTOR_FOUND AND ASCIIDOCTOR_EPUB_EXECUTABLE)
+ ASCIIDOCTOR2EPUB(developer-guide.adoc ${WSDG_SOURCE} ${WSDG_BUILT_DEPS})
+
+ add_custom_target(
+ developer_guide_epub
+ DEPENDS
+ developer-guide.epub
+ )
+ set_docbook_target_properties(developer_guide_epub)
+ add_dependencies(developer_guides developer_guide_epub)
+endif()
+
if (GUIDE_INSTALL_DIRS)
# The installation location and DOC_DIR in ui/help_url.c must
# match.