mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-25 22:30:51 +08:00
Documentation: improve the look of landing page (#4625)
* Documentation: improve the look of landing page by showing a more-compact list
This commit is contained in:
parent
3e08ecc012
commit
481d536713
@ -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:
|
||||
@ -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)
|
||||
|
16
doc/asciidoctor.css
Normal file
16
doc/asciidoctor.css
Normal file
@ -0,0 +1,16 @@
|
||||
/* SPDX-License-Identifier: MPL-2.0 */
|
||||
|
||||
/*
|
||||
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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user