From nobody Tue May 7 08:40:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1542896409200588.2324856445803; Thu, 22 Nov 2018 06:20:09 -0800 (PST) Received: from localhost ([::1]:46956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPppv-0007AI-Uw for importer@patchew.org; Thu, 22 Nov 2018 09:20:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPpoB-00060G-Fd for qemu-devel@nongnu.org; Thu, 22 Nov 2018 09:18:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPpo7-00070S-Rz for qemu-devel@nongnu.org; Thu, 22 Nov 2018 09:18:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48416) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPpo7-0006vE-HM for qemu-devel@nongnu.org; Thu, 22 Nov 2018 09:18:15 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 78E80307D840; Thu, 22 Nov 2018 14:18:13 +0000 (UTC) Received: from localhost (ovpn-112-60.ams2.redhat.com [10.36.112.60]) by smtp.corp.redhat.com (Postfix) with ESMTP id 77E51608E7; Thu, 22 Nov 2018 14:18:09 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: qemu-devel@nongnu.org Date: Thu, 22 Nov 2018 18:17:41 +0400 Message-Id: <20181122141741.11108-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 22 Nov 2018 14:18:13 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] docs: apply some qemu.org-like CSS style to HTML X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , sw@weilnetz.de Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Style a bit the HTML documents, to make them look like qemu.org pages. Signed-off-by: Marc-Andr=C3=A9 Lureau Tested-by: Stefan Weil --- Makefile | 2 + docs/texinfo-extra-head.html | 7 ++ docs/texinfo.css | 226 +++++++++++++++++++++++++++++++++++ 3 files changed, 235 insertions(+) create mode 100644 docs/texinfo-extra-head.html create mode 100644 docs/texinfo.css diff --git a/Makefile b/Makefile index f2947186a4..9cc4dae1a6 100644 --- a/Makefile +++ b/Makefile @@ -940,6 +940,8 @@ docs/version.texi: $(SRC_PATH)/VERSION =20 %.html: %.texi docs/version.texi $(call quiet-command,LC_ALL=3DC $(MAKEINFO) $(MAKEINFOFLAGS) --no-headers= \ + --set-customization-variable EXTRA_HEAD=3D"`cat $(SRC_PATH)/docs/texinfo-= extra-head.html`" \ + --css-include=3D$(SRC_PATH)/docs/texinfo.css \ --html $< -o $@,"GEN","$@") =20 %.info: %.texi docs/version.texi diff --git a/docs/texinfo-extra-head.html b/docs/texinfo-extra-head.html new file mode 100644 index 0000000000..2986b31701 --- /dev/null +++ b/docs/texinfo-extra-head.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/texinfo.css b/docs/texinfo.css new file mode 100644 index 0000000000..f541ed2cec --- /dev/null +++ b/docs/texinfo.css @@ -0,0 +1,226 @@ +/* CSS style for QEMU Texinfo documents */ +/* based on Public domain 2016 sirgazil. All rights waived. */ + +a:link, +a:visited { + color: #F03B11; + text-decoration: none; +} + +a:active, +a:focus, +a:hover { + text-decoration: underline; +} + +abbr, +acronym { + cursor: help; +} + +blockquote { + color: #555753; + font-style: oblique; + margin: 30px 0; + padding-left: 3em; +} + +body { + background: url("https://www.qemu.org/assets/images/qemu_head_200.png"= ) no-repeat fixed 2em 80px; + font-family: 'Roboto', sans-serif; + font-size: 11pt; + font-weight: 300; + line-height: 1.75em; + color: #000000; + margin-left: 16.667%; + width: 66.667%; +} + +code, +samp, +tt, +var { + font-family: 'Roboto Mono', monospace; +} + +div.example, +div.lisp { + margin: 0; +} + +dl { + margin: 3em 0; +} + +dl dl { + margin: 0; +} + +dt { + background-color: #F5F5F5; + padding: 0.5em; +} + +h1, +h2, +h2.contents-heading, +h3, +h4 { + padding: 20px 0 0 0; + font-weight: 300; +} + +h1 { + position: relative; + background: #f03b11; + background: -webkit-linear-gradient(top, #f03b11 0%, #f01139 100%); + background: linear-gradient(to bottom, #f03b11 0%, #f01139 100%); + background-size: cover; + text-align: center; + color: #FFF; + text-decoration: none; + font-weight: 300; + line-height: 1em; + font-size: 3em; +} + +h2 { + font-size: 2.2em; + font-weight: bold; +} + +h3 { + font-size: 1.8em; +} + +h4 { + font-size: 1.4em; +} + +hr { + display: none; +} + +img { + max-width: 100%; +} + +li { + padding: 5px; +} + +pre.display, +pre.example, +pre.format, +pre.lisp, +pre.verbatim { + overflow: auto; +} + +pre.example, +pre.lisp, +pre.verbatim { + background-color: #2D3743; + border-color: #000; + border-style: solid; + border-width: thin; + color: #E1E1E1; + font-size: smaller; + padding: 1em; +} + +table { + border-collapse: collapse; + margin: 40px 0px; +} + +table.index-cp *, +table.index-fn *, +table.index-ky *, +table.index-pg *, +table.index-tp *, +table.index-vr * { + background-color: inherit; + border-style: none; +} + +td, +th { + border-color: silver; + border-style: solid; + border-width: thin; + padding: 10px; +} + +th { + background-color: #F5F5F5; +} + +.contents-heading { + display: none; +} + +.contents { + margin-bottom: 4em; +} + +.float { + margin: 3em 0em; +} + +.float-caption { + font-size: smaller; + text-align: center; +} + +.float>img { + display: block; + margin: auto; +} + +.footnote { + font-size: smaller; + margin: 5em 0em; +} + +.footnote h3 { + display: inline; + font-size: small; +} + +.header { + background-color: #F2F2F2; + font-size: small; + padding: 0.2em 1em; +} + +.key { + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + padding: 0.1em 0.5em; + margin: 0 0.2em; + box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset; + background-color: #f7f7f7; +} + +.menu * { + border-style: none; +} + +.menu td { + padding: 0.5em 0em; +} + +.menu td:last-child { + width: 60%; +} + +.menu th { + background-color: inherit; +} + +.example code, +.example var { + color: #E1E1E1; +} --=20 2.20.0.rc1