From nobody Sat Dec 21 12:42:40 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707325700505252.9053108692442; Wed, 7 Feb 2024 09:08:20 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 765E51ED5; Wed, 7 Feb 2024 12:08:19 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 76B7E1F1A; Wed, 7 Feb 2024 11:53:46 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id AEB3C1ED5; Wed, 7 Feb 2024 11:53:30 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 6705A1ECE for ; Wed, 7 Feb 2024 11:52:45 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-578-Ybf-9hNOMuS_IoFFDCLRXg-1; Wed, 07 Feb 2024 11:52:43 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9F732837237 for ; Wed, 7 Feb 2024 16:52:43 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 169172026D09 for ; Wed, 7 Feb 2024 16:52:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: Ybf-9hNOMuS_IoFFDCLRXg-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 01/11] gitlab_pages: Fix 'maven' redirect Date: Wed, 7 Feb 2024 17:52:31 +0100 Message-ID: <990262fe36d4248440fc00c3d037956f74c226d5.1707324594.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: A23ZADLYLTQFF2SM464BS7PZ37FMGRGP X-Message-ID-Hash: A23ZADLYLTQFF2SM464BS7PZ37FMGRGP X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707325702053100001 The redirect to the 'maven' repository of libvirt doesn't work currently for libvirt pages as the ':splat' replacement doesn't match due to a missing '/'. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- .gitlab_pages_redirects | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab_pages_redirects b/.gitlab_pages_redirects index baa94384ba..ab21561911 100644 --- a/.gitlab_pages_redirects +++ b/.gitlab_pages_redirects @@ -7,7 +7,7 @@ # Redirects to the download server /libvirt/sources/* https://download.libvirt.org/:splat 301 /libvirt/ruby/download/* https://download.libvirt.org/ruby/:splat 301 -/libvirt/maven2/org/libvirt* https://download.libvirt.org/maven2/org/libvi= rt/:splat 301 +/libvirt/maven2/org/libvirt/* https://download.libvirt.org/maven2/org/libv= irt/:splat 301 # Redirects to subproject pages /libvirt/ruby/* https://ruby.libvirt.org/:splat 301 --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:40 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707325775783402.83610649018624; Wed, 7 Feb 2024 09:09:35 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id AA3191F4A; Wed, 7 Feb 2024 12:09:34 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 39D431F02; Wed, 7 Feb 2024 11:53:54 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 5B74617D2; Wed, 7 Feb 2024 11:53:33 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 7A2C017D2 for ; Wed, 7 Feb 2024 11:52:46 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-127-L_8sDqjAPPOGgNYX-e58xA-1; Wed, 07 Feb 2024 11:52:44 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 936AB83B86A for ; Wed, 7 Feb 2024 16:52:44 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 098B92026D09 for ; Wed, 7 Feb 2024 16:52:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: L_8sDqjAPPOGgNYX-e58xA-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 02/11] docs: page.xsl: Fix headerlinks with new docutils Date: Wed, 7 Feb 2024 17:52:32 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: VVGHDGNMGNEQ42BUKBSOBKN6C3BXHOHW X-Message-ID-Hash: VVGHDGNMGNEQ42BUKBSOBKN6C3BXHOHW X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707325776455100001 New docutils generates a
element rather than a
as it did before thus breaking our headerlink generator. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/page.xsl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/page.xsl b/docs/page.xsl index 1021899b3a..04d7cc9432 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -139,6 +139,9 @@ + + + --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:40 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 17073258855421006.3589484591511; Wed, 7 Feb 2024 09:11:25 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 7D7B71F16; Wed, 7 Feb 2024 12:11:24 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 6AF821E54; Wed, 7 Feb 2024 11:54:02 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id E0CE11F03; Wed, 7 Feb 2024 11:53:39 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 83A061E2B for ; Wed, 7 Feb 2024 11:52:47 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-237-5E_DkTNhNOuMKgQ89YRGjQ-1; Wed, 07 Feb 2024 11:52:45 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8471E1022EFB for ; Wed, 7 Feb 2024 16:52:45 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id F21AF2026D09 for ; Wed, 7 Feb 2024 16:52:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: 5E_DkTNhNOuMKgQ89YRGjQ-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 03/11] js: Separate the virt-tools blog planet loader code Date: Wed, 7 Feb 2024 17:52:33 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: IOQBMRO5AUMBRVMIGVH5DQGCMKCE2QL6 X-Message-ID-Hash: IOQBMRO5AUMBRVMIGVH5DQGCMKCE2QL6 X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707325887188100001 In order to promote simple assets sharing between main libvirt web and the libvirt-wiki separate the virt tools blog feed loader from the main code used for search. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/index.rst | 5 +-- docs/js/main.js | 62 ----------------------------- docs/js/meson.build | 1 + docs/js/virt-tools-blog-planet.js | 65 +++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 66 deletions(-) create mode 100644 docs/js/virt-tools-blog-planet.js diff --git a/docs/index.rst b/docs/index.rst index b1666ee22e..79afae65da 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -65,10 +65,7 @@ Blog Planet .. raw:: html -
diff --git a/docs/js/main.js b/docs/js/main.js index 87b817b287..bb94c5ac52 100644 --- a/docs/js/main.js +++ b/docs/js/main.js @@ -89,65 +89,3 @@ function advancedsearch(e) { return false; } - -function fetchRSS() { - if (document.location.protocol =3D=3D "file:") - return; - - var planet =3D document.getElementById("planet"); - if (planet =3D=3D=3D null) - return; - - var req =3D new XMLHttpRequest(); - req.open("GET", "https://planet.virt-tools.org/atom.xml"); - req.setRequestHeader("Accept", "application/atom+xml, text/xml"); - req.onerror =3D function(e) { - if (this.statusText !=3D "") - console.error(this); - }; - req.onload =3D function(e) { - if (this.readyState !=3D=3D 4) - return; - - if (this.status !=3D 200) { - console.error(this.statusText); - return; - } - - if (this.responseXML =3D=3D=3D null) { - console.error("Atom response is not an XML"); - return; - } - - var dl =3D document.createElement("dl"); - var dateOpts =3D { day: "numeric", month: "short", year: "numeric"= }; - - var entries =3D this.responseXML.querySelectorAll("feed > entry:no= t(:nth-of-type(1n+5))"); - - entries.forEach(function(e) { - var name =3D e.querySelector("author > name").textContent; - var title =3D e.querySelector("title").textContent; - var updated =3D e.querySelector("updated").textContent; - var link =3D e.querySelector("link").attributes.href.textConte= nt; - - var a =3D document.createElement("a"); - a.href =3D link; - a.innerText =3D title; - - var dt =3D document.createElement("dt"); - dt.appendChild(a); - dl.appendChild(dt); - - var date =3D new Date(updated); - date =3D date.toLocaleDateString("default", dateOpts); - - var dd =3D document.createElement("dd"); - dd.innerText =3D ` by ${name} on ${date}`; - - dl.appendChild(dd); - }); - - planet.appendChild(dl); - }; - req.send(); -} diff --git a/docs/js/meson.build b/docs/js/meson.build index 9f77b0d85c..e83d1c92b0 100644 --- a/docs/js/meson.build +++ b/docs/js/meson.build @@ -1,5 +1,6 @@ docs_js_files =3D [ 'main.js', + 'virt-tools-blog-planet.js', ] install_data(docs_js_files, install_dir: docs_html_dir / 'js') diff --git a/docs/js/virt-tools-blog-planet.js b/docs/js/virt-tools-blog-pl= anet.js new file mode 100644 index 0000000000..7f4e2bf3b9 --- /dev/null +++ b/docs/js/virt-tools-blog-planet.js @@ -0,0 +1,65 @@ +"use strict"; + +function fetchRSS() { + if (document.location.protocol =3D=3D "file:") + return; + + var planet =3D document.getElementById("planet"); + if (planet =3D=3D=3D null) + return; + + var req =3D new XMLHttpRequest(); + req.open("GET", "https://planet.virt-tools.org/atom.xml"); + req.setRequestHeader("Accept", "application/atom+xml, text/xml"); + req.onerror =3D function(e) { + if (this.statusText !=3D "") + console.error(this); + }; + req.onload =3D function(e) { + if (this.readyState !=3D=3D 4) + return; + + if (this.status !=3D 200) { + console.error(this.statusText); + return; + } + + if (this.responseXML =3D=3D=3D null) { + console.error("Atom response is not an XML"); + return; + } + + var dl =3D document.createElement("dl"); + var dateOpts =3D { day: "numeric", month: "short", year: "numeric"= }; + + var entries =3D this.responseXML.querySelectorAll("feed > entry:no= t(:nth-of-type(1n+5))"); + + entries.forEach(function(e) { + var name =3D e.querySelector("author > name").textContent; + var title =3D e.querySelector("title").textContent; + var updated =3D e.querySelector("updated").textContent; + var link =3D e.querySelector("link").attributes.href.textConte= nt; + + var a =3D document.createElement("a"); + a.href =3D link; + a.innerText =3D title; + + var dt =3D document.createElement("dt"); + dt.appendChild(a); + dl.appendChild(dt); + + var date =3D new Date(updated); + date =3D date.toLocaleDateString("default", dateOpts); + + var dd =3D document.createElement("dd"); + dd.innerText =3D ` by ${name} on ${date}`; + + dl.appendChild(dd); + }); + + planet.appendChild(dl); + }; + req.send(); +} + +window.addEventListener("load", function() { fetchRSS() }); --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 170732607475338.19259908226729; Wed, 7 Feb 2024 09:14:34 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id B762C1E34; Wed, 7 Feb 2024 12:14:33 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 4E3231F35; Wed, 7 Feb 2024 11:54:25 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 583B61E55; Wed, 7 Feb 2024 11:54:12 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 026D319B1 for ; Wed, 7 Feb 2024 11:52:48 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-616-6389k4PjPuCs2NcJ8o94Iw-1; Wed, 07 Feb 2024 11:52:46 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6D1CC1022EF8 for ; Wed, 7 Feb 2024 16:52:46 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id D88F22026D09 for ; Wed, 7 Feb 2024 16:52:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: 6389k4PjPuCs2NcJ8o94Iw-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 04/11] css: mobile: Split up libvirt.org specific styles from main template style Date: Wed, 7 Feb 2024 17:52:34 +0100 Message-ID: <168506b3a866d8052a38ab63928c1da14bcf2e85.1707324594.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: AU6EQGUHSBJKMWULCCIJI5QBB7CDGFXF X-Message-ID-Hash: AU6EQGUHSBJKMWULCCIJI5QBB7CDGFXF X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707326075994100001 Separate the libvirt.org specific stuff from the main template style so that the latter can be reused in libvirt-wiki without modification. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/css/main.css | 3 ++- docs/css/meson.build | 3 ++- docs/css/mobile-libvirt.css | 17 +++++++++++++++++ docs/css/{mobile.css =3D> mobile-template.css} | 15 +-------------- 4 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 docs/css/mobile-libvirt.css rename docs/css/{mobile.css =3D> mobile-template.css} (84%) diff --git a/docs/css/main.css b/docs/css/main.css index 88e453aca6..74498dd30e 100644 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -1,4 +1,5 @@ @import url(fonts.css); @import url(generic.css); @import url(libvirt.css); -@import url(mobile.css); +@import url(mobile-template.css); +@import url(mobile-libvirt.css); diff --git a/docs/css/meson.build b/docs/css/meson.build index a2a2ccfb28..51cf0d6b72 100644 --- a/docs/css/meson.build +++ b/docs/css/meson.build @@ -3,7 +3,8 @@ docs_css_files =3D [ 'generic.css', 'libvirt.css', 'main.css', - 'mobile.css', + 'mobile-template.css', + 'mobile-libvirt.css', ] install_data(docs_css_files, install_dir: docs_html_dir / 'css') diff --git a/docs/css/mobile-libvirt.css b/docs/css/mobile-libvirt.css new file mode 100644 index 0000000000..b9e81b0d93 --- /dev/null +++ b/docs/css/mobile-libvirt.css @@ -0,0 +1,17 @@ +@media (max-width: 1000px) { + #the-virtualization-api > h1, + #the-virtualization-api > h2 { + display: none; + } + + #the-virtualization-api section, + #the-virtualization-api .section, + #documentation section, + #documentation .section, + #knowledge-base section, + #knowledge-base .section { + width: 100%; + margin-left: 0px; + float: none; + } +} diff --git a/docs/css/mobile.css b/docs/css/mobile-template.css similarity index 84% rename from docs/css/mobile.css rename to docs/css/mobile-template.css index 2e223f468e..2f862d58ea 100644 --- a/docs/css/mobile.css +++ b/docs/css/mobile-template.css @@ -1,3 +1,4 @@ +/* Style for the page.xsl template */ @media (max-width: 1000px) { #home { width: 100%; @@ -20,10 +21,6 @@ #search form { padding: 5px; } - #the-virtualization-api > h1, - #the-virtualization-api > h2 { - display: none; - } #jumplinks { padding: 0px; display: block; @@ -88,16 +85,6 @@ #body { margin-top: 180px; } - #the-virtualization-api section, - #the-virtualization-api .section, - #documentation section, - #documentation .section, - #knowledge-base section, - #knowledge-base .section { - width: 100%; - margin-left: 0px; - float: none; - } #advancedsearch { margin-top: 4em; border: 0px; --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707326339406247.23402013180555; Wed, 7 Feb 2024 09:18:59 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 481691EEC; Wed, 7 Feb 2024 12:18:58 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 657561F1E; Wed, 7 Feb 2024 11:54:48 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 94DFC1ECF; Wed, 7 Feb 2024 11:54:18 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 9CC2B1E29 for ; Wed, 7 Feb 2024 11:52:49 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-199-k9Nk4x7ZP-ClPQN4qX8FPQ-1; Wed, 07 Feb 2024 11:52:47 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 585D5837236 for ; Wed, 7 Feb 2024 16:52:47 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id C2B822026D09 for ; Wed, 7 Feb 2024 16:52:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: k9Nk4x7ZP-ClPQN4qX8FPQ-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 05/11] css: Split out page templated styles to 'libvirt-template.css' Date: Wed, 7 Feb 2024 17:52:35 +0100 Message-ID: <7b604bb8b607dc7561647e446272a62d0527ab0f.1707324594.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: BEBY63PGBZ2JMKVTL4UZZK2XFM6BXM2L X-Message-ID-Hash: BEBY63PGBZ2JMKVTL4UZZK2XFM6BXM2L X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707326341161100001 Separate the styles related to the main page template and the build process specifics (docutils-originated) into a separate CSS file. Hint: Best viewed with 'git show --color-moved=3Dblocks' Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/css/libvirt-template.css | 236 +++++++++++++++++++++++++++++++++ docs/css/libvirt.css | 237 ---------------------------------- docs/css/main.css | 1 + docs/css/meson.build | 1 + 4 files changed, 238 insertions(+), 237 deletions(-) create mode 100644 docs/css/libvirt-template.css diff --git a/docs/css/libvirt-template.css b/docs/css/libvirt-template.css new file mode 100644 index 0000000000..2ea93c793f --- /dev/null +++ b/docs/css/libvirt-template.css @@ -0,0 +1,236 @@ +/* styles related to the page template (page.xsl) */ +#nav { + position: absolute; + top: 0px; + left: 0px; + height: 100px; + background: rgb(0, 95, 97); + border-bottom: 3px solid rgb(60, 133, 124); + width: 100%; + display: table; +} + +#home { + background-image: url(../logos/logo-banner-light-256.png); + background-repeat: no-repeat; + background-position: left center; + height: 100px; + width: 269px; + margin-left: 1em; + text-indent: 100%; white-space: nowrap; overflow: hidden; +} + +#home a { + color: rgb(0, 95, 97); + height: 100px; + width: 269px; + display: block; +} + +#jumplinks { + display: table-cell; + vertical-align: middle; + font-size: 16pt; + text-align: right; +} + +#jumplinks ul { + list-style: none; +} + +#jumplinks li { + display: inline; + padding-left: 2em; + font-weight: bold; +} + +#jumplinks a { + color: rgb(255, 255, 255); + text-decoration: none; +} + +#jumplinks a:hover { + color: rgb(255, 230, 0); +} + +#search { + display: table-cell; + vertical-align: middle; + width: 13em; + text-align: right; + padding: 1em; +} + +#search input { + border: 0px; + height: 2em; +} + +#search input[type=3Dtext] { + background: rgb(230, 230, 230); + color: rgb(0, 0, 0); + width: 10em; + padding: 0px; + padding-left: 2px; + padding-right: 2px; +} + +#search input[type=3Dsubmit] { + background: rgb(60, 133, 124); + color: rgb(255, 255, 255); + width: 3em; + font-weight: bold; +} + +#search input[type=3Dsubmit]:active, +#search input[type=3Dsubmit]:hover { + color: rgb(255, 230, 0); +} + +#body { + border: 0px; + left: 0px; + margin: 0px; + margin-top: 120px; + margin-left: 1em; + margin-right: 1em; +} + +main, +.document { + margin-left: auto; + margin-right: auto; + padding: 0px; + padding-bottom: 1em; + max-width: 95%; + width: 70em; +} + +h1 a, h2 a, h3 a, h4 a, h5 a { + color: inherit; + text-decoration: inherit; +} + +a.headerlink { + text-decoration: none!important; + visibility: hidden; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink { + visibility: visible; +} + +br.clear { + clear: both; + border: 0px; +} + +#footer { + clear: both; + border-top: 3px solid rgb(60, 133, 124); + margin-top: 2em; + padding: 1em; + background: rgb(0, 95, 97); + color: rgb(255, 255, 255); +} + +#footer a { + color: inherit; + text-decoration: none; +} + +#footer a:hover { + color: rgb(255, 230, 0); +} + +#conduct { + float: right; + text-align: right; + font-size: smaller; + margin-right: 3em; +} + +#conduct a { + text-decoration: underline; +} + +#contact, #community, #contribute { + float: left; + padding: 0px; + margin-left: 3em; +} + +#footer h3 { + margin:0px; + font-size: 1em; + color: rgb(60, 133, 124); +} + +#footer ul { + list-style: none; + margin: 0px; + font-size: smaller; +} + +#advancedsearch { + display: none; + vertical-align: bottom; + position: absolute; + padding: 1em; + padding-top: 0em; + margin-top: 0em; + top: 100px; + right: 0px; + width: 15em; + text-align: left; + color: white; + background: rgb(0, 95, 97); + border-left: 3px solid rgb(60, 133, 124); + border-bottom: 3px solid rgb(60, 133, 124); +} + +/* Use div.advancedsearch, not #advancedsearch because the + * 'advancedsearch' class is set dynamically when javascript + * loads. This ensures that the advancedsearch options are + * not displayed when javascript is disabled. +*/ +#search:hover div.advancedsearch { + display: table; +} + +#advancedsearch span { + display: block; +} + +#advancedsearch input[type=3Dradio] { + height: inherit; + display: inline; +} + +#advancedsearch label { + display: inline; +} + +/* Elements with id 'contents' contain the table of contents generated by = docutils */ +.contents li p { + margin: 2px; +} + +#contents { + margin-top: 1em; + margin-bottom: 1em; + background: rgb(230, 230, 230); + padding: 0.5em; + padding-left: 0px; + display: inline-block; + border: 1px solid #999999; +} + +#contents p.topic-title { + display: none; +} diff --git a/docs/css/libvirt.css b/docs/css/libvirt.css index 0dc3280694..370bff1f0d 100644 --- a/docs/css/libvirt.css +++ b/docs/css/libvirt.css @@ -1,110 +1,3 @@ -#nav { - position: absolute; - top: 0px; - left: 0px; - height: 100px; - background: rgb(0, 95, 97); - border-bottom: 3px solid rgb(60, 133, 124); - width: 100%; - display: table; -} - -#home { - background-image: url(../logos/logo-banner-light-256.png); - background-repeat: no-repeat; - background-position: left center; - height: 100px; - width: 269px; - margin-left: 1em; - text-indent: 100%; white-space: nowrap; overflow: hidden; -} - -#home a { - color: rgb(0, 95, 97); - height: 100px; - width: 269px; - display: block; -} - -#jumplinks { - display: table-cell; - vertical-align: middle; - font-size: 16pt; - text-align: right; -} - -#jumplinks ul { - list-style: none; -} - -#jumplinks li { - display: inline; - padding-left: 2em; - font-weight: bold; -} - -#jumplinks a { - color: rgb(255, 255, 255); - text-decoration: none; -} - -#jumplinks a:hover { - color: rgb(255, 230, 0); -} - -#search { - display: table-cell; - vertical-align: middle; - width: 13em; - text-align: right; - padding: 1em; -} - -#search input { - border: 0px; - height: 2em; -} - -#search input[type=3Dtext] { - background: rgb(230, 230, 230); - color: rgb(0, 0, 0); - width: 10em; - padding: 0px; - padding-left: 2px; - padding-right: 2px; -} - -#search input[type=3Dsubmit] { - background: rgb(60, 133, 124); - color: rgb(255, 255, 255); - width: 3em; - font-weight: bold; -} - -#search input[type=3Dsubmit]:active, -#search input[type=3Dsubmit]:hover { - color: rgb(255, 230, 0); -} - -#body { - border: 0px; - left: 0px; - margin: 0px; - margin-top: 120px; - margin-left: 1em; - margin-right: 1em; -} - -main, -.document { - margin-left: auto; - margin-right: auto; - padding: 0px; - padding-bottom: 1em; - max-width: 95%; - width: 70em; -} - main#the-virtualization-api, #the-virtualization-api.document, main#documentation, @@ -151,11 +44,6 @@ div.api table td, div.variablelist table td { padding-left: 1em; } -h1 a, h2 a, h3 a, h4 a, h5 a { - color: inherit; - text-decoration: inherit; -} - table { border-collapse: collapse; min-width: 60%; @@ -303,20 +191,6 @@ div.description pre.code { margin-left: 2.5em; } -a.headerlink { - text-decoration: none!important; - visibility: hidden; -} - -h1:hover > a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink { - visibility: visible; -} - #the-virtualization-api section, #the-virtualization-api .section, #documentation section, @@ -360,58 +234,6 @@ h6:hover > a.headerlink { padding: 1em; } -br.clear { - clear: both; - border: 0px; -} - -#footer { - clear: both; - border-top: 3px solid rgb(60, 133, 124); - margin-top: 2em; - padding: 1em; - background: rgb(0, 95, 97); - color: rgb(255, 255, 255); -} - -#footer a { - color: inherit; - text-decoration: none; -} - -#footer a:hover { - color: rgb(255, 230, 0); -} - -#conduct { - float: right; - text-align: right; - font-size: smaller; - margin-right: 3em; -} - -#conduct a { - text-decoration: underline; -} - -#contact, #community, #contribute { - float: left; - padding: 0px; - margin-left: 3em; -} - -#footer h3 { - margin:0px; - font-size: 1em; - color: rgb(60, 133, 124); -} - -#footer ul { - list-style: none; - margin: 0px; - font-size: smaller; -} - #the-virtualization-api dd, #documentation dd, #knowledge-base dd { @@ -467,45 +289,6 @@ td.enumvalue { white-space: nowrap; } -#advancedsearch { - display: none; - vertical-align: bottom; - position: absolute; - padding: 1em; - padding-top: 0em; - margin-top: 0em; - top: 100px; - right: 0px; - width: 15em; - text-align: left; - color: white; - background: rgb(0, 95, 97); - border-left: 3px solid rgb(60, 133, 124); - border-bottom: 3px solid rgb(60, 133, 124); -} - -/* Use div.advancedsearch, not #advancedsearch because the - * 'advancedsearch' class is set dynamically when javascript - * loads. This ensures that the advancedsearch options are - * not displayed when javascript is disabled. -*/ -#search:hover div.advancedsearch { - display: table; -} - -#advancedsearch span { - display: block; -} - -#advancedsearch input[type=3Dradio] { - height: inherit; - display: inline; -} - -#advancedsearch label { - display: inline; -} - .removedhv { color: darkred; } @@ -515,31 +298,11 @@ td.enumvalue { background: #eeeeee; } -.contents li p { - margin: 2px; -} - th p, td p { margin-top: 0px; margin-bottom: 0px; } -/* Elements with id 'contents' contain the table of contents generated by = docutils */ - -#contents { - margin-top: 1em; - margin-bottom: 1em; - background: rgb(230, 230, 230); - padding: 0.5em; - padding-left: 0px; - display: inline-block; - border: 1px solid #999999; -} - -#contents p.topic-title { - display: none; -} - span.del { text-decoration: line-through; } diff --git a/docs/css/main.css b/docs/css/main.css index 74498dd30e..d832836f3a 100644 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -1,5 +1,6 @@ @import url(fonts.css); @import url(generic.css); @import url(libvirt.css); +@import url(libvirt-template.css); @import url(mobile-template.css); @import url(mobile-libvirt.css); diff --git a/docs/css/meson.build b/docs/css/meson.build index 51cf0d6b72..74007c8051 100644 --- a/docs/css/meson.build +++ b/docs/css/meson.build @@ -2,6 +2,7 @@ docs_css_files =3D [ 'fonts.css', 'generic.css', 'libvirt.css', + 'libvirt-template.css', 'main.css', 'mobile-template.css', 'mobile-libvirt.css', --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707326180334901.0092250708532; Wed, 7 Feb 2024 09:16:20 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 40AAE1EED; Wed, 7 Feb 2024 12:16:19 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 045EA1F37; Wed, 7 Feb 2024 11:54:39 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 09F9719ED; Wed, 7 Feb 2024 11:54:17 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 1834C1EDB for ; Wed, 7 Feb 2024 11:52:50 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-519-Qb9s3GPeN_6a2UNFkuf_IA-1; Wed, 07 Feb 2024 11:52:48 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4660B85A599 for ; Wed, 7 Feb 2024 16:52:48 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id AEC9A2026D09 for ; Wed, 7 Feb 2024 16:52:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: Qb9s3GPeN_6a2UNFkuf_IA-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 06/11] css: Remove unused CSS for migration support matrix table Date: Wed, 7 Feb 2024 17:52:36 +0100 Message-ID: <5a8904b63f727df25b10b876c3a1300267173906.1707324594.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: 5JHKYWTV5U5725S5EJAAAFJFLJYHGDIL X-Message-ID-Hash: 5JHKYWTV5U5725S5EJAAAFJFLJYHGDIL X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707326182330100001 The 'table tbody td.y' and 'table tbody td.n' selectors don't exist since commit 8841302e3d46b2de0227dc2f97e4e647580e3d88 which converted the table to rST. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/css/libvirt.css | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/css/libvirt.css b/docs/css/libvirt.css index 370bff1f0d..2dc127f373 100644 --- a/docs/css/libvirt.css +++ b/docs/css/libvirt.css @@ -99,16 +99,6 @@ img.diagram { margin-right: auto; } - -table tbody td.y { - background: rgb(220,255,220); - text-align: center; -} -table tbody td.n { - background: rgb(255,220,220); - text-align: center; -} - .api { font-family: monospace; } --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707326454871795.395663014112; Wed, 7 Feb 2024 09:20:54 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id CA7E51F09; Wed, 7 Feb 2024 12:20:53 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 4BEC81F06; Wed, 7 Feb 2024 11:54:56 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 4A6E81E79; Wed, 7 Feb 2024 11:54:22 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 9C3DB1EDE for ; Wed, 7 Feb 2024 11:52:51 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-581-1verhePFMMuNzYO99TYmqg-1; Wed, 07 Feb 2024 11:52:49 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3A28E831017 for ; Wed, 7 Feb 2024 16:52:49 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id A78F32026D09 for ; Wed, 7 Feb 2024 16:52:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: 1verhePFMMuNzYO99TYmqg-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 07/11] css: Move styles for the generated API documents to libvirt-api.css Date: Wed, 7 Feb 2024 17:52:37 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: QPGVHHWHNOJLIGZTNRZ7BLXNX4EM2WPG X-Message-ID-Hash: QPGVHHWHNOJLIGZTNRZ7BLXNX4EM2WPG X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707326455690100001 Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/css/libvirt-api.css | 112 +++++++++++++++++++++++++++++++++++++++ docs/css/libvirt.css | 111 -------------------------------------- docs/css/main.css | 1 + docs/css/meson.build | 1 + 4 files changed, 114 insertions(+), 111 deletions(-) create mode 100644 docs/css/libvirt-api.css diff --git a/docs/css/libvirt-api.css b/docs/css/libvirt-api.css new file mode 100644 index 0000000000..ab6d846530 --- /dev/null +++ b/docs/css/libvirt-api.css @@ -0,0 +1,112 @@ +/* CSS styles for the generated API documents */ + +div.api { + border: 1px solid #999999; + background: #eeeeee; + color: black; + padding: 3px; +} + +div.api pre { + margin: 0px; + border: 0px; + background: inherit; + padding: inherit; +} + +div.api table { + margin: 0px; + padding-left: 2em; + border-spacing: 0px; +} + +div.api table td, div.variablelist table td { + vertical-align: top; + padding-left: 1em; +} + +.api { + font-family: monospace; +} + +.api .type { + font-weight: bold; + white-space: nowrap; + color: darkslateblue; +} + +.api .keyword { + font-weight: bold; + color: #A2F; +} + +.api .comment { + color: #080; + margin-left: 2em; + position: relative; +} + +.api .comment:before { + content: ": "; + position: absolute; + left: -1.3em; +} + +.api .undisclosed { + font-style: italic; + letter-spacing: .3ex; + font-weight: bolder; + text-transform: uppercase; + margin-left: 2em; +} + +.api .directive { + color: teal; +} + +.api :link:hover, .api :link:focus { + color: blue; + border-color: blue; +} + +.api :link { + text-decoration: none; +} + +.api table td,.api table th { + border: 0px; +} + +.api table tr:hover td, .api table col:hover td { + background: inherit; +} + +.api table tr td:hover { + background: inherit; +} + +dl.variablelist > dt { + display: block; + float: left; + font-style: italic; + font-weight: inherit; +} + +.variablelist dd { + padding-left: 10em; +} + +dl.variablelist > dt:after { + content: ": "; +} + +div.description pre.code { + border: 1px dashed grey; + background-color: inherit; + padding: 5px 10px 5px 10px; + margin-left: 2.5em; +} + +td.enumvalue { + white-space: nowrap; +} diff --git a/docs/css/libvirt.css b/docs/css/libvirt.css index 2dc127f373..02942bcf75 100644 --- a/docs/css/libvirt.css +++ b/docs/css/libvirt.css @@ -19,31 +19,6 @@ a { color: rgb(0, 95, 97); } -div.api { - border: 1px solid #999999; - background: #eeeeee; - color: black; - padding: 3px; -} - -div.api pre { - margin: 0px; - border: 0px; - background: inherit; - padding: inherit; -} - -div.api table { - margin: 0px; - padding-left: 2em; - border-spacing: 0px; -} - -div.api table td, div.variablelist table td { - vertical-align: top; - padding-left: 1em; -} - table { border-collapse: collapse; min-width: 60%; @@ -99,88 +74,6 @@ img.diagram { margin-right: auto; } -.api { - font-family: monospace; -} - -.api .type { - font-weight: bold; - white-space: nowrap; - color: darkslateblue; -} - -.api .keyword { - font-weight: bold; - color: #A2F; -} - -.api .comment { - color: #080; - margin-left: 2em; - position: relative; -} - -.api .comment:before { - content: ": "; - position: absolute; - left: -1.3em; -} - -.api .undisclosed { - font-style: italic; - letter-spacing: .3ex; - font-weight: bolder; - text-transform: uppercase; - margin-left: 2em; -} - -.api .directive { - color: teal; -} - -.api :link:hover, .api :link:focus { - color: blue; - border-color: blue; -} - -.api :link { - text-decoration: none; -} - -.api table td,.api table th { - border: 0px; -} - -.api table tr:hover td, .api table col:hover td { - background: inherit; -} - -.api table tr td:hover { - background: inherit; -} - -dl.variablelist > dt { - display: block; - float: left; - font-style: italic; - font-weight: inherit; -} - -.variablelist dd { - padding-left: 10em; -} - -dl.variablelist > dt:after { - content: ": "; -} - -div.description pre.code { - border: 1px dashed grey; - background-color: inherit; - padding: 5px 10px 5px 10px; - margin-left: 2.5em; -} - #the-virtualization-api section, #the-virtualization-api .section, #documentation section, @@ -275,10 +168,6 @@ div.description pre.code { margin-bottom: 1em; } -td.enumvalue { - white-space: nowrap; -} - .removedhv { color: darkred; } diff --git a/docs/css/main.css b/docs/css/main.css index d832836f3a..fdcba22130 100644 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -1,6 +1,7 @@ @import url(fonts.css); @import url(generic.css); @import url(libvirt.css); +@import url(libvirt-api.css); @import url(libvirt-template.css); @import url(mobile-template.css); @import url(mobile-libvirt.css); diff --git a/docs/css/meson.build b/docs/css/meson.build index 74007c8051..6f4f140ffc 100644 --- a/docs/css/meson.build +++ b/docs/css/meson.build @@ -2,6 +2,7 @@ docs_css_files =3D [ 'fonts.css', 'generic.css', 'libvirt.css', + 'libvirt-api.css', 'libvirt-template.css', 'main.css', 'mobile-template.css', --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707326535700626.400611493891; Wed, 7 Feb 2024 09:22:15 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 831EA1EFE; Wed, 7 Feb 2024 12:22:14 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 9FAE71F01; Wed, 7 Feb 2024 11:55:05 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 859901E34; Wed, 7 Feb 2024 11:54:23 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 78F241D7E for ; Wed, 7 Feb 2024 11:52:52 -0500 (EST) Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-684-JcbQPENvPE6ykgilYiO-2Q-1; Wed, 07 Feb 2024 11:52:50 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 248263810D27 for ; Wed, 7 Feb 2024 16:52:50 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9051D2026D09 for ; Wed, 7 Feb 2024 16:52:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: JcbQPENvPE6ykgilYiO-2Q-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 08/11] css: Move generic styles to 'generic.css' Date: Wed, 7 Feb 2024 17:52:38 +0100 Message-ID: <5f5795d3d9cd812fd0bf7d41b794b620301dd44f.1707324594.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: HLG53I5IYOEQIEL7YBF56BMMF6FLKB4S X-Message-ID-Hash: HLG53I5IYOEQIEL7YBF56BMMF6FLKB4S X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707326535977100001 Move the few generic styles to the appropriate document. 'libvirt.css' will now be a compilation of styles related only to libvirt.org. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/css/generic.css | 59 ++++++++++++++++++++++++++++++++++++++++++++ docs/css/libvirt.css | 59 -------------------------------------------- 2 files changed, 59 insertions(+), 59 deletions(-) diff --git a/docs/css/generic.css b/docs/css/generic.css index d15d85e67a..df37ceea37 100644 --- a/docs/css/generic.css +++ b/docs/css/generic.css @@ -83,3 +83,62 @@ dd code, p code, tt { pre { font-size: 90%; } + +pre { + border: 1px solid #999999; + background: #eeeeee; + color: black; + padding: 1em; +} + +a { + color: rgb(0, 95, 97); +} + +table { + border-collapse: collapse; + min-width: 60%; + margin-left: auto; + margin-right: auto; +} + +table th { + background: rgb(0, 95, 97); + color: rgb(255, 255, 255); + padding: 0.5em; +} + +table th a { + color: inherit; + text-decoration: inherit; +} + +table td, table th { + border: 1px solid rgb(60, 133, 124); +} + +table td { + padding: 4px; +} + +table tr:hover td, table col:hover td { + background: #eeeeee; +} + +table tr td:hover { + background: #c5dbd8; +} + +.literal, code { + font-family: monospace; + background: #eeeeee; +} + +th p, td p { + margin-top: 0px; + margin-bottom: 0px; +} + +span.del { + text-decoration: line-through; +} diff --git a/docs/css/libvirt.css b/docs/css/libvirt.css index 02942bcf75..58ac1d385b 100644 --- a/docs/css/libvirt.css +++ b/docs/css/libvirt.css @@ -8,51 +8,6 @@ main#knowledge-base, width: inherit; } -pre { - border: 1px solid #999999; - background: #eeeeee; - color: black; - padding: 1em; -} - -a { - color: rgb(0, 95, 97); -} - -table { - border-collapse: collapse; - min-width: 60%; - margin-left: auto; - margin-right: auto; -} - -table th { - background: rgb(0, 95, 97); - color: rgb(255, 255, 255); - padding: 0.5em; -} - -table th a { - color: inherit; - text-decoration: inherit; -} - -table td, table th { - border: 1px solid rgb(60, 133, 124); -} - -table td { - padding: 4px; -} - -table tr:hover td, table col:hover td { - background: #eeeeee; -} - -table tr td:hover { - background: #c5dbd8; -} - span.since { color: #3c857c; font-style: italic; @@ -171,17 +126,3 @@ img.diagram { .removedhv { color: darkred; } - -.literal, code { - font-family: monospace; - background: #eeeeee; -} - -th p, td p { - margin-top: 0px; - margin-bottom: 0px; -} - -span.del { - text-decoration: line-through; -} --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707326807217726.624549965209; Wed, 7 Feb 2024 09:26:47 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 1F66E1EE3; Wed, 7 Feb 2024 12:26:46 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 6E04A1F5B; Wed, 7 Feb 2024 11:55:33 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 5F2081823; Wed, 7 Feb 2024 11:54:58 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 048321EF5 for ; Wed, 7 Feb 2024 11:52:54 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-142-b_GwJ1j3NxKiHTXMMNJ-lA-1; Wed, 07 Feb 2024 11:52:51 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0DD6D83B86A for ; Wed, 7 Feb 2024 16:52:51 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 796BA2026D09 for ; Wed, 7 Feb 2024 16:52:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: b_GwJ1j3NxKiHTXMMNJ-lA-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 09/11] docs: Move 'html including' from page.xsl to site.xsl Date: Wed, 7 Feb 2024 17:52:39 +0100 Message-ID: <1cfbfd1555be6c3696951f3ca9fd3a7ae2713bbd.1707324594.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: IDMKC4ATSYJQQAQRNWDJANYK2VIHYNO6 X-Message-ID-Hash: IDMKC4ATSYJQQAQRNWDJANYK2VIHYNO6 X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707326809073100001 Strip down the main template as much as possible. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/page.xsl | 14 -------------- docs/site.xsl | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/page.xsl b/docs/page.xsl index 04d7cc9432..e2f0092ae9 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -7,18 +7,12 @@ exclude-result-prefixes=3D"xsl exsl html" version=3D"1.0"> - - - - - - @@ -125,14 +119,6 @@ - - - - - - - - diff --git a/docs/site.xsl b/docs/site.xsl index f56eb67b8a..0c11619fea 100644 --- a/docs/site.xsl +++ b/docs/site.xsl @@ -8,6 +8,20 @@ + + + + + + + + + + + + + + Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707326648015186.86419056032184; Wed, 7 Feb 2024 09:24:08 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id B518C1F4E; Wed, 7 Feb 2024 12:24:06 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 964E51E81; Wed, 7 Feb 2024 11:55:16 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id A0F171E81; Wed, 7 Feb 2024 11:54:26 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id DDBB21EE8 for ; Wed, 7 Feb 2024 11:52:53 -0500 (EST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-48-P3LrKrOjPdKm4lmM-I1dwg-1; Wed, 07 Feb 2024 11:52:52 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EB079831017 for ; Wed, 7 Feb 2024 16:52:51 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6377A2026D09 for ; Wed, 7 Feb 2024 16:52:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: P3LrKrOjPdKm4lmM-I1dwg-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 10/11] docs: xsl: Properly propagate 'href_base' as XSL template parameter Date: Wed, 7 Feb 2024 17:52:40 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: 3KZ7EZHKX7RIJFRKNKUYRBI4TG7MPVLK X-Message-ID-Hash: 3KZ7EZHKX7RIJFRKNKUYRBI4TG7MPVLK X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707326648428100001 Propagate it as a parameter both from site.xsl and from newapi.xsl, the latter of which declared it as a variable. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/html/meson.build | 2 ++ docs/newapi.xsl | 2 +- docs/page.xsl | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/html/meson.build b/docs/html/meson.build index e2758ed177..abb4fcf72a 100644 --- a/docs/html/meson.build +++ b/docs/html/meson.build @@ -27,6 +27,7 @@ index_api_gen =3D custom_target( xsltproc_prog, '--nonet', '-o', docs_builddir, '--stringparam', 'builddir', meson.project_build_root(), '--stringparam', 'timestamp', docs_timestamp, + '--stringparam', 'href_base', '../', '@INPUT@', ], install: true, @@ -53,6 +54,7 @@ foreach name : [ 'admin', 'lxc', 'qemu' ] xsltproc_prog, '--nonet', '-o', docs_builddir, '--stringparam', 'builddir', meson.project_build_root(), '--stringparam', 'timestamp', docs_timestamp, + '--stringparam', 'href_base', '../', '@INPUT@', ], install: true, diff --git a/docs/newapi.xsl b/docs/newapi.xsl index 19a440bb09..ebe7fdedd7 100644 --- a/docs/newapi.xsl +++ b/docs/newapi.xsl @@ -24,7 +24,6 @@ html - ../ @@ -816,6 +815,7 @@ encoding=3D"UTF-8"> + diff --git a/docs/page.xsl b/docs/page.xsl index e2f0092ae9..5d55fac43f 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -17,6 +17,7 @@ + <!DOCTYPE html> --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org From nobody Sat Dec 21 12:42:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1707326737076187.1210371014074; Wed, 7 Feb 2024 09:25:37 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 104941F41; Wed, 7 Feb 2024 12:25:36 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id BACD11858; Wed, 7 Feb 2024 11:55:25 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id D78971EE6; Wed, 7 Feb 2024 11:54:31 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id E35D41EF3 for ; Wed, 7 Feb 2024 11:52:54 -0500 (EST) Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-88-4jwx4vQbO060YmUwQmV4OQ-1; Wed, 07 Feb 2024 11:52:53 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DAC5A1C09832 for ; Wed, 7 Feb 2024 16:52:52 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E8E72026D09 for ; Wed, 7 Feb 2024 16:52:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: 4jwx4vQbO060YmUwQmV4OQ-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH 11/11] docs: page.xsl: Split up 'href_base' for assets and links Date: Wed, 7 Feb 2024 17:52:41 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: NLVD7XQPQCSZJGQTB4AYQJUG35IFPDYE X-Message-ID-Hash: NLVD7XQPQCSZJGQTB4AYQJUG35IFPDYE X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1707326738870100001 To allow reuse of this template as-is in libvirt-wiki, we need to be able to specify a distinct asset_href_base and link_href_base. Adjust the template to allow that. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/newapi.xsl | 3 ++- docs/page.xsl | 21 +++++++++++---------- docs/site.xsl | 3 ++- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/docs/newapi.xsl b/docs/newapi.xsl index ebe7fdedd7..d6f8d88170 100644 --- a/docs/newapi.xsl +++ b/docs/newapi.xsl @@ -815,7 +815,8 @@ encoding=3D"UTF-8"> - + + diff --git a/docs/page.xsl b/docs/page.xsl index 5d55fac43f..a51587db6c 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -17,7 +17,8 @@ - + + <!DOCTYPE html> @@ -31,7 +32,7 @@ - + @@ -43,7 +44,7 @@ - @@ -62,13 +63,13 @@
- Home + Home
@@ -91,8 +92,8 @@

Contact

@@ -112,7 +113,7 @@
- Participants in the libvirt project agree to abide by the project code of conduc= t + Participants in the libvirt project agree to abide by the project code of c= onduct

diff --git a/docs/site.xsl b/docs/site.xsl index 0c11619fea..c0b56be72f 100644 --- a/docs/site.xsl +++ b/docs/site.xsl @@ -31,7 +31,8 @@ - + + --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org