浏览代码

HPCC-19974 Add language and locale to WsSQL User Guide PDF file name

Add building HTML for WsSQL User Guide
xwang2713 7 年之前
父节点
当前提交
9dc9288179

+ 31 - 0
docs/BuildTools/cmake_config/WsSQLUG.txt

@@ -0,0 +1,31 @@
+################################################################################
+# Copyright (C) 2018 HPCC Systems.
+#
+# All rights reserved. This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+################################################################################
+
+
+DOCBOOK_TO_PDF( ${FO_XSL} WsSQL_ESPWebServiceGuide.xml "WsSQL_ESP_Web_Service_Users_Guide_${DOC_LANG}")
+
+IF(MAKE_DOCS)
+  SET(HELP_DEPENDENCIES)
+  GET_PROPERTY(Current_Targets GLOBAL PROPERTY DOC_TARGETS)
+  FOREACH(T ${Current_Targets})
+    IF("${T}" MATCHES ".*WsSQL_ESP_Web_Service_Users_Guide_${DOC_LANG}.*")
+      LIST(APPEND HELP_DEPENDENCIES  ${T})
+     ENDIF()
+  ENDFOREACH()
+
+  DOCBOOK_TO_HTML(${ECLIPSE_HTML_XSL} "${CMAKE_CURRENT_BINARY_DIR}/WsSQL_ESPWebServiceGuide.xml" ${PORTAL_HTML_DIR}/WsSQLUG_${DOC_LANG}  "wssql_user_guide_html_${DOC_LANG}" "${HPCC_SOURCE_DIR}/docs/common/eclipsehelp.css" "")
+ENDIF(MAKE_DOCS)

+ 2 - 3
docs/EN_US/WsSQLUG/CMakeLists.txt

@@ -15,6 +15,5 @@
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 ################################################################################
 
-
-DOCBOOK_TO_PDF( ${FO_XSL} WsSQL_ESPWebServiceGuide.xml "WsSQL_ESP_Web_Service_Users_Guide")
-
+get_filename_component(DOC_DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+include(${CMAKE_CURRENT_SOURCE_DIR}/../../BuildTools/cmake_config/${DOC_DIR_NAME}.txt)

+ 3 - 3
docs/EN_US/WsSQLUG/WsSQL_ESPWebServiceGuide.xml

@@ -32,15 +32,15 @@
       <para></para>
     </legalnotice>
 
-    <xi:include href="common/Version.xml" xpointer="FooterInfo"
+    <xi:include href="common/Version.xml" xpointer="xpointer(//*[@id='FooterInfo'])"
                 xmlns:xi="http://www.w3.org/2001/XInclude" />
 
-    <xi:include href="common/Version.xml" xpointer="DateVer"
+    <xi:include href="common/Version.xml" xpointer="xpointer(//*[@id='DateVer'])"
                 xmlns:xi="http://www.w3.org/2001/XInclude" />
 
     <corpname>HPCC Systems</corpname>
 
-    <xi:include href="common/Version.xml" xpointer="Copyright"
+    <xi:include href="common/Version.xml" xpointer="xpointer(//*[@id='Copyright'])"
                 xmlns:xi="http://www.w3.org/2001/XInclude" />
 
     <mediaobject role="logo">