summaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-05-03 21:31:55 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-05-14 09:42:57 +0200
commit220bd837aea2fac67594b8b62291f306f70a6230 (patch)
tree47d3f583bdccfbba4a15e234bbef8d3a50f5d0e6 /doc/CMakeLists.txt
parentf3163aa271b3f1b45244ec09ba4c566450a07a24 (diff)
downloadweechat-220bd837aea2fac67594b8b62291f306f70a6230.zip
doc: use asciidoctor instead of asciidoc (issue #722)
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r--doc/CMakeLists.txt24
1 files changed, 3 insertions, 21 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 1ea7fd65a..fadef1282 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -20,29 +20,11 @@
if(ENABLE_MAN OR ENABLE_DOC)
- find_package(Sourcehighlight)
- find_package(Asciidoc)
+ find_package(Asciidoctor)
- if(ASCIIDOC_FOUND)
+ if(ASCIIDOCTOR_FOUND)
- set(CSS_TOC -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/asciidoc_toc.css)
- set(CSS_TOC2 -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/asciidoc_toc2.css)
-
- set(ASCIIDOC_ARGS -a revision="${VERSION}" -f ${CMAKE_CURRENT_SOURCE_DIR}/asciidoc.conf)
-
- # use html5 backend if available (asciidoc >= 8.6.5)
- if(ASCIIDOC_VERSION VERSION_EQUAL "8.6.5" OR ASCIIDOC_VERSION VERSION_GREATER "8.6.5")
- set(ASCIIDOC_ARGS -b html5 ${ASCIIDOC_ARGS})
- endif()
-
- set(ASCIIDOC_ARGS_USER ${ASCIIDOC_ARGS} ${CSS_TOC2} )
- set(ASCIIDOC_ARGS_API ${ASCIIDOC_ARGS} ${CSS_TOC2} )
- set(ASCIIDOC_ARGS_SCRIPTING ${ASCIIDOC_ARGS} ${CSS_TOC2} )
- set(ASCIIDOC_ARGS_FAQ ${ASCIIDOC_ARGS} ${CSS_TOC} -n)
- set(ASCIIDOC_ARGS_QUICKSTART ${ASCIIDOC_ARGS} ${CSS_TOC2} -n)
- set(ASCIIDOC_ARGS_TESTER ${ASCIIDOC_ARGS} ${CSS_TOC2} )
- set(ASCIIDOC_ARGS_RELAY ${ASCIIDOC_ARGS} ${CSS_TOC2} )
- set(ASCIIDOC_ARGS_DEV ${ASCIIDOC_ARGS} ${CSS_TOC2} )
+ set(ASCIIDOCTOR_ARGS -a revnumber="${VERSION}" -a sectanchors -a source-highlighter=highlight.js)
add_subdirectory(en)
add_subdirectory(fr)