Skip to content

Commit

Permalink
Documentation: improve the look of landing page by showing a more-com…
Browse files Browse the repository at this point in the history
…pact list
  • Loading branch information
f18m committed Nov 10, 2023
1 parent 3e08ecc commit 32319e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Makefile.am
Expand Up @@ -52,7 +52,7 @@ MAINTAINERCLEANFILES += $(HTML_DOC) $(MAN_DOC)
SUFFIXES=.html .adoc .3 .7

.adoc.html:
asciidoctor --backend html --attribute zmq_version=@PACKAGE_VERSION@ $<
asciidoctor --backend html --attribute stylesheet=asciidoctor.css --attribute zmq_version=@PACKAGE_VERSION@ $<
.adoc.3:
asciidoctor --backend manpage --attribute zmq_version=@PACKAGE_VERSION@ $<
.adoc.7:
Expand All @@ -72,7 +72,7 @@ $(builddir)/__pagelist:
index.html:
$(MAKE) $(builddir)/__pagelist
asciidoctor --backend html \
--attribute zmq_version=@PACKAGE_VERSION@ --attribute zmq_pagelist_dir=$(abs_builddir) \
--attribute zmq_version=@PACKAGE_VERSION@ --attribute zmq_pagelist_dir=$(abs_builddir) --attribute stylesheet=asciidoctor.css \
$(srcdir)/index.adoc

all-local : $(MAN_DOC) $(HTML_DOC)
Expand Down
15 changes: 15 additions & 0 deletions doc/asciidoctor.css
@@ -0,0 +1,15 @@
/*
CSS file for Asciidoctor HTML documentation
See https://docs.asciidoctor.org/asciidoctor/latest/html-backend/default-stylesheet/#customize-extend
See also https://github.com/darshandsoni/asciidoctor-skins/ for custom "skins"
*/

/* import the default Asciidoctor CSS file */
@import "https://cdn.jsdelivr.net/gh/asciidoctor/asciidoctor@2.0/data/stylesheets/asciidoctor-default.css";

/* just make the default HTML list more compact: */
.ulist p {
padding: 0;
margin-right: -4px;
margin-bottom: -4px;
}

0 comments on commit 32319e2

Please sign in to comment.