mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
docs: add index page (#4615)
This commit is contained in:
parent
05c2025412
commit
aa9a2c8429
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ syntax: glob # for hg-git users
|
|||||||
builds/Makefile
|
builds/Makefile
|
||||||
builds/deprecated-msvc/Makefile
|
builds/deprecated-msvc/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
|
doc/__pagelist
|
||||||
libtool
|
libtool
|
||||||
### automake
|
### automake
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
@ -28,17 +28,17 @@ MAN7 = \
|
|||||||
zmq_null.7 zmq_plain.7 zmq_curve.7 zmq_tipc.7 zmq_vmci.7 zmq_udp.7 \
|
zmq_null.7 zmq_plain.7 zmq_curve.7 zmq_tipc.7 zmq_vmci.7 zmq_udp.7 \
|
||||||
zmq_gssapi.7
|
zmq_gssapi.7
|
||||||
|
|
||||||
# MAN_ADOC contains all original Asciidoc files from git repo
|
# ASCIIDOC_DOC_WITHOUT_INDEX contains all the Asciidoc files checked into the git repo, except for index.adoc
|
||||||
MAN_ADOC = $(MAN3:%.3=%.adoc) $(MAN7:%.7=%.adoc)
|
ASCIIDOC_DOC_WITHOUT_INDEX = $(MAN3:%.3=%.adoc) $(MAN7:%.7=%.adoc)
|
||||||
|
|
||||||
# MAN_DOC contains all the MANUAL PAGES (generated from asciidoc files)
|
# MAN_DOC contains all the MANPAGE documentation (generated from asciidoc files)
|
||||||
MAN_DOC = $(MAN3) $(MAN7)
|
MAN_DOC = $(MAN3) $(MAN7)
|
||||||
|
|
||||||
# MAN_HTML contains all the HTML PAGES (generated from asciidoc files)
|
# HTML_DOC contains all the HTML documentation (generated from asciidoc files)
|
||||||
MAN_HTML = $(MAN_ADOC:%.adoc=%.html)
|
HTML_DOC = index.html $(ASCIIDOC_DOC_WITHOUT_INDEX:%.adoc=%.html)
|
||||||
|
|
||||||
MAINTAINERCLEANFILES =
|
MAINTAINERCLEANFILES =
|
||||||
EXTRA_DIST = $(MAN_ADOC)
|
EXTRA_DIST = $(ASCIIDOC_DOC_WITHOUT_INDEX)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -47,26 +47,40 @@ EXTRA_DIST = $(MAN_ADOC)
|
|||||||
#
|
#
|
||||||
if BUILD_DOC
|
if BUILD_DOC
|
||||||
|
|
||||||
EXTRA_DIST += $(MAN_HTML) $(MAN_DOC)
|
EXTRA_DIST += $(HTML_DOC) $(MAN_DOC)
|
||||||
MAINTAINERCLEANFILES += $(MAN_HTML) $(MAN_DOC)
|
MAINTAINERCLEANFILES += $(HTML_DOC) $(MAN_DOC)
|
||||||
SUFFIXES=.html .adoc .3 .7
|
SUFFIXES=.html .adoc .3 .7
|
||||||
|
|
||||||
.adoc.html:
|
.adoc.html:
|
||||||
asciidoctor -b html -azmq_version=@PACKAGE_VERSION@ $<
|
asciidoctor -b html -azmq_version=@PACKAGE_VERSION@ $<
|
||||||
.adoc.3:
|
.adoc.3:
|
||||||
asciidoctor -b manpage -azmq_version=@PACKAGE_VERSION@ $<
|
asciidoctor -b manpage -azmq_version=@PACKAGE_VERSION@ $<
|
||||||
.adoc.7:
|
.adoc.7:
|
||||||
asciidoctor -b manpage -azmq_version=@PACKAGE_VERSION@ $<
|
asciidoctor -b manpage -azmq_version=@PACKAGE_VERSION@ $<
|
||||||
|
|
||||||
dist-hook : $(MAN_DOC) $(MAN_HTML)
|
dist-hook : $(MAN_DOC) $(HTML_DOC)
|
||||||
|
|
||||||
# To help publishing HTML files into github Pages, we indicate github that the "zmq.html" page is the index page;
|
# the following Bash snippet is used to automatically generate an alphabetical list included by index.adoc:
|
||||||
# that page contains a link to all other documentation pages
|
$(builddir)/__pagelist:
|
||||||
all-local : $(MAN_DOC) $(MAN_HTML)
|
echo >$@
|
||||||
ln -sf zmq.html index.html
|
for adocfile in $(ASCIIDOC_DOC_WITHOUT_INDEX); do \
|
||||||
|
noext=$${adocfile//.adoc/}; \
|
||||||
|
echo "* xref:$${adocfile}[$${noext}]" >> $@; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# there are a number of constraints in auto-generating files for Asciidoctor:
|
||||||
|
# - out-of-tree builds
|
||||||
|
# - read-only source tree
|
||||||
|
# - target being invoked into RPM buildroot
|
||||||
|
# etc, so we have special rules to build the index.html page, which requires auto-generated list of doc pages
|
||||||
|
index.html:
|
||||||
|
$(MAKE) $(builddir)/__pagelist
|
||||||
|
asciidoctor -b html -azmq_version=@PACKAGE_VERSION@ -azmq_pagelist_dir=$(abs_builddir) $(srcdir)/index.adoc
|
||||||
|
|
||||||
|
all-local : $(MAN_DOC) $(HTML_DOC)
|
||||||
|
|
||||||
clean-local :
|
clean-local :
|
||||||
rm -f $(MAN3) $(MAN7) $(MAN_HTML)
|
rm -f $(MAN_DOC) $(HTML_DOC) $(builddir)/__pagelist
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
9
doc/index.adoc
Normal file
9
doc/index.adoc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
= ZMQ API reference
|
||||||
|
|
||||||
|
This documentation is for libzmq {zmq_version}.
|
||||||
|
|
||||||
|
A suggested start to understand 0MQ (also written as ZMQ or ZeroMQ) is the xref:zmq.adoc[zmq] manpage.
|
||||||
|
|
||||||
|
== Alphabetic list of documentation pages
|
||||||
|
|
||||||
|
include::{zmq_pagelist_dir}/__pagelist[]
|
Loading…
Reference in New Issue
Block a user