mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-17 00:23:58 +00:00
* migrate from the old, unmaintained "asciidoc-py" tool to the new "asciidoctor" generator * migrate from asciidoc-py syntax to the modern Asciidoc syntax (especially page titles and section titles) * remove the need of "xmlto" utility to create the manpage output; use asciidoctor for that * add HTML output support to the doc/Makefile by using asciidoctor * change API documentation files extension from .txt to .adoc to make it more explicit that they are Asciidoc-encoded (as a bonus several IDE plugins will autodetect the .adoc format as Asciidoc) * remove asciidoc.conf: asciidoctor does not support that; this also required replacing the macro linkzmq into all documentation pages * add a new Github action CI do deploy to Github Pages the static HTMLs produced by Asciidoctors * removed references to the "xmlto" and "a2x" tools from the build and packaging systems: Asciidoctor can convert the documentation directly to e.g. pdf (via extended converters) and anyway there was no code/target for using "xmlto" and "a2x" tools anyway
24 lines
891 B
CMake
24 lines
891 B
CMake
# - Find Asciidoctor
|
|
# this module looks for asciidoctor
|
|
#
|
|
# ASCIIDOCTOR_EXECUTABLE - the full path to asciidoc
|
|
# ASCIIDOCTOR_FOUND - If false, don't attempt to use asciidoc.
|
|
set (PROGRAMFILESX86 "PROGRAMFILES(X86)")
|
|
|
|
find_program(ASCIIDOCTOR_EXECUTABLE asciidoctor asciidoctor
|
|
PATHS "$ENV{ASCIIDOCTOR_ROOT}"
|
|
"$ENV{PROGRAMW6432}/asciidoctor"
|
|
"$ENV{PROGRAMFILES}/asciidoctor"
|
|
"$ENV{${PROGRAMFILESX86}}/asciidoctor")
|
|
|
|
find_program(A2X_EXECUTABLE a2x
|
|
PATHS "$ENV{ASCIIDOCTOR_ROOT}"
|
|
"$ENV{PROGRAMW6432}/asciidoctor"
|
|
"$ENV{PROGRAMFILES}/asciidoctor"
|
|
"$ENV{${PROGRAMFILESX86}}/asciidoctor")
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_ARGS(AsciiDoctor REQUIRED_VARS ASCIIDOCTOR_EXECUTABLE)
|
|
mark_as_advanced(ASCIIDOCTOR_EXECUTABLE)
|