Skip to content

Commit

Permalink
Merge 29a40c2 into aa9a2c8
Browse files Browse the repository at this point in the history
  • Loading branch information
f18m committed Nov 1, 2023
2 parents aa9a2c8 + 29a40c2 commit b90453f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# libzmq readthedocs.io integration
#
# This configuration file is processed by readthedocs.io to rebuild the
# libzmq documentation using Asciidoctor, see
# https://docs.readthedocs.io/en/stable/build-customization.html#asciidoc

version: "2"

formats:
- htmlzip

build:
os: "ubuntu-22.04"
tools:
nodejs: "20"
# NOTE: as of Nov 2023, build.apt_packages is NOT considered when using build.commands
#apt_packages:
# - automake
# - autoconf
# - cmake
# - libtool
commands:
- npm install -g asciidoctor
- asciidoctor --backend html --destination-dir $READTHEDOCS_OUTPUT/html --attribute zmq_version='4.3.6' doc/*.adoc
# we use as landing page the "zmq.html":
- cp $READTHEDOCS_OUTPUT/html/zmq.html $READTHEDOCS_OUTPUT/html/index.html
# htmlzip docs are just like HTML:
# NOTE: for usability we make sure zip will create a zipfile containing just a flat list of HTML files; to achieve that
# it's important to avoid storing absolute paths when invoking "zip", thus we use -j
- mkdir -p $READTHEDOCS_OUTPUT/htmlzip/
- cd $READTHEDOCS_OUTPUT/html && zip -j ../htmlzip/f18m-libzmq.zip *.html
6 changes: 3 additions & 3 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ MAINTAINERCLEANFILES += $(HTML_DOC) $(MAN_DOC)
SUFFIXES=.html .adoc .3 .7

.adoc.html:
asciidoctor -b html -azmq_version=@PACKAGE_VERSION@ $<
asciidoctor --backend html --attribute zmq_version=@PACKAGE_VERSION@ $<
.adoc.3:
asciidoctor -b manpage -azmq_version=@PACKAGE_VERSION@ $<
asciidoctor --backend manpage --attribute zmq_version=@PACKAGE_VERSION@ $<
.adoc.7:
asciidoctor -b manpage -azmq_version=@PACKAGE_VERSION@ $<
asciidoctor --backend manpage --attribute zmq_version=@PACKAGE_VERSION@ $<

dist-hook : $(MAN_DOC) $(HTML_DOC)

Expand Down

0 comments on commit b90453f

Please sign in to comment.