[kaudiocreator] /: Enable documentation (update DTD, add subdirectory)

Luigi Toscano null at kde.org
Thu Dec 15 00:13:54 UTC 2016


Git commit f9f34052ba0cba5dcde3cd406a85b24f14d0b43d by Luigi Toscano.
Committed on 15/12/2016 at 00:06.
Pushed by ltoscano into branch 'master'.

Enable documentation (update DTD, add subdirectory)

Interesting enough, it seems that the doc subdirectory has not been
enabled for a long time (not in the history of the cmake file at
least).

M  +5    -0    CMakeLists.txt
M  +1    -1    doc/CMakeLists.txt
M  +1    -1    doc/index.docbook

https://commits.kde.org/kaudiocreator/f9f34052ba0cba5dcde3cd406a85b24f14d0b43d

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e64550e..1742e44 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,7 @@ find_package(KF5 REQUIRED COMPONENTS
     XmlGui
     Solid
     KDELibs4Support
+    DocTools
     I18n
     KIO
 )
@@ -60,6 +61,10 @@ if(ENABLE_DEBUG)
     add_definitions(-g -DDEBUG)
 endif()
 
+if(KF5DocTools_VERSION)
+    add_subdirectory(doc)
+endif(KF5DocTools_VERSION)
+
 include_directories(
     ${CMAKE_SOURCE_DIR}
     ${CMAKE_BINARY_DIR}
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 57fa56f..0bf4978 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -1,2 +1,2 @@
 ########### install files ###############
-kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kaudiocreator)
+kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR kaudiocreator)
diff --git a/doc/index.docbook b/doc/index.docbook
index fd0cfb1..fdcc82e 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -1,5 +1,5 @@
 <?xml version="1.0" ?>
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
   <!ENTITY kaudiocreator "<application>KAudioCreator</application>">
   <!ENTITY kappname "&kaudiocreator;"><!-- Do *not* replace kappname-->
   <!ENTITY package "extragear"><!-- kdebase, kdeadmin, etc -->


More information about the kde-doc-english mailing list