Fix man pages build
authorJean Baptiste Favre <debian@jbfavre.org>
Fri, 25 Nov 2016 16:49:34 +0000 (17:49 +0100)
committerJean Baptiste Favre <debian@jbfavre.org>
Fri, 16 Feb 2018 14:05:07 +0000 (14:05 +0000)
Gbp-Pq: Name 0005-fix_documentation_build_option.patch

configure.ac
doc/manpages.py

index 9f91f00cc854bfd8021863e4ea45faddb5046bb4..cbaaeb0a10621cefbec0165d47d7adb5db4ede7a 100644 (file)
@@ -275,7 +275,7 @@ AM_CONDITIONAL([BUILD_TESTS], [test 0 -ne $has_tests])
 AC_MSG_CHECKING([whether to build documentation])
 AC_ARG_ENABLE([docs],
   [AS_HELP_STRING([--enable-docs],[enable documentation building])],
-  [],
+  [enable_doc_build=yes],
   [enable_doc_build=no]
 )
 AC_MSG_RESULT([$enable_doc_build])
index 761a74c402a02f53f7142c3fa04d5aebc43bcd53..7b62a2577e4f4e153cf3c89011f9412c90fca1d6 100644 (file)
@@ -20,7 +20,7 @@ import os
 man_pages = [
     # Add all files in the reference/api directory to the list of manual
     # pages
-    ('developer-guide/api/functions/' + filename[:-4], filename.split('.', 1)[0], '', None, '3ts') for filename in os.listdir('developer-guide/api/functions/') if filename != 'index.en.rst' and filename.endswith('.rst')] + [
+    ('developer-guide/api/functions/' + filename[:-4], filename.split('.', 1)[0], filename.split('.', 1)[0] + ' API function', None, '3ts') for filename in os.listdir('developer-guide/api/functions/') if filename != 'index.en.rst' and filename.endswith('.rst')] + [
 
     ('appendices/command-line/traffic_cop.en', 'traffic_cop', u'Traffic Server watchdog', None, '8'),
     ('appendices/command-line/traffic_ctl.en', 'traffic_ctl', u'Traffic Server command line tool', None, '8'),