Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: improve the look of landing page #4625

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Documentation: improve the look of landing page by showing a more-com…
…pact list
  • Loading branch information
f18m committed Nov 10, 2023
commit 32319e2b362a8b27f20e84fa0998101c71bcdb6f
4 changes: 2 additions & 2 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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/[email protected]/data/stylesheets/asciidoctor-default.css";

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

@bluca bluca Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing newline at the end, and SPDX line at the beginning

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Loading