From nobody Sun May 12 23:18:01 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 1701688630215673.666434716584; Mon, 4 Dec 2023 03:17:10 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 094A518ED; Mon, 4 Dec 2023 06:17:07 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 10C811857; Mon, 4 Dec 2023 06:15:22 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 60ACD183D; Mon, 4 Dec 2023 06:15:19 -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 A5EDA1827 for ; Mon, 4 Dec 2023 06:15:18 -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-47-ftCeyFYqNKCGCViIhjgmCQ-1; Mon, 04 Dec 2023 06:15:16 -0500 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 B4E18811E7E for ; Mon, 4 Dec 2023 11:15:16 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.45.226.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C4F2492BE0 for ; Mon, 4 Dec 2023 11:15:16 +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_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: ftCeyFYqNKCGCViIhjgmCQ-1 From: Andrea Bolognani To: devel@lists.libvirt.org Subject: [libvirt PATCH 1/2] docs: Use DuckDuckGo for website/wiki search Date: Mon, 4 Dec 2023 12:15:12 +0100 Message-ID: <20231204111513.1130348-2-abologna@redhat.com> In-Reply-To: <20231204111513.1130348-1-abologna@redhat.com> References: <20231204111513.1130348-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: YMHOVGFLTVDR5P2EY3DFUIZ35GPBJW7T X-Message-ID-Hash: YMHOVGFLTVDR5P2EY3DFUIZ35GPBJW7T X-MailFrom: abologna@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"; x-default="true" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1701688632052100001 Ideally we'd just perform the search ourselves, but as long as we have to rely on an external provider, at least make it a somewhat privacy-conscious one. Signed-off-by: Andrea Bolognani Reviewed-by: Martin Kletzander --- docs/js/main.js | 16 +++++++++++----- docs/page.xsl | 4 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/docs/js/main.js b/docs/js/main.js index 57e1faf030..87b817b287 100644 --- a/docs/js/main.js +++ b/docs/js/main.js @@ -40,12 +40,13 @@ function advancedsearch(e) { var form =3D document.createElement("form"); form.method =3D "get"; =20 + var q =3D document.getElementById("searchq"); var newq =3D document.createElement("input"); newq.type =3D "hidden"; newq.name =3D "q"; + newq.value =3D q.value; form.appendChild(newq); =20 - var q =3D document.getElementById("searchq"); var whats =3D document.getElementsByName("what"); var what =3D "website"; for (var i =3D 0; i < whats.length; i++) { @@ -56,15 +57,20 @@ function advancedsearch(e) { } =20 if (what =3D=3D "website" || what =3D=3D "wiki") { - form.action =3D "https://google.com/search"; + form.action =3D "https://duckduckgo.com/"; + + var newsite =3D document.createElement("input"); + newsite.type =3D "hidden"; + newsite.name =3D "sites"; + form.appendChild(newsite); + if (what =3D=3D "website") { - newq.value =3D "site:libvirt.org " + q.value; + newsite.value =3D "libvirt.org"; } else { - newq.value =3D "site:wiki.libvirt.org " + q.value; + newsite.value =3D "wiki.libvirt.org"; } } else if (what =3D=3D "devs" || "users") { form.action =3D "https://lists.libvirt.org/archives/search"; - newq.value =3D q.value; =20 var newl =3D document.createElement("input"); newl.type =3D "hidden"; diff --git a/docs/page.xsl b/docs/page.xsl index 27607e4d92..8a1a77fa99 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -77,9 +77,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 Sun May 12 23:18:01 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 170168870108674.7118874654268; Mon, 4 Dec 2023 03:18:21 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id EBA9E18C9; Mon, 4 Dec 2023 06:18:19 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 04A1D18DB; Mon, 4 Dec 2023 06:15:26 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 214F8181A; Mon, 4 Dec 2023 06:15:20 -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 8757B1827 for ; Mon, 4 Dec 2023 06:15:19 -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-479-jX0mx_o3Mg-gDMlwgXv-3g-1; Mon, 04 Dec 2023 06:15:17 -0500 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 6A69189C886 for ; Mon, 4 Dec 2023 11:15:17 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.45.226.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0197F492BE0 for ; Mon, 4 Dec 2023 11:15:16 +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_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: jX0mx_o3Mg-gDMlwgXv-3g-1 From: Andrea Bolognani To: devel@lists.libvirt.org Subject: [libvirt PATCH 2/2] docs: Mention use of DuckDuckGo Date: Mon, 4 Dec 2023 12:15:13 +0100 Message-ID: <20231204111513.1130348-3-abologna@redhat.com> In-Reply-To: <20231204111513.1130348-1-abologna@redhat.com> References: <20231204111513.1130348-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: 2VDU65MQ27V6TON55YQTTQTYXRLXOX4L X-Message-ID-Hash: 2VDU65MQ27V6TON55YQTTQTYXRLXOX4L X-MailFrom: abologna@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"; x-default="true" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1701688701805100001 The fact that we use an external search provider instead of a built-in search functionality might come as a surprise to users, and some of them might not be comfortable with the arrangement. Mention it in the search interface to avoid surprises. Signed-off-by: Andrea Bolognani Reviewed-by: Martin Kletzander --- docs/css/libvirt.css | 2 +- docs/page.xsl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/css/libvirt.css b/docs/css/libvirt.css index 7021d0b599..0dc3280694 100644 --- a/docs/css/libvirt.css +++ b/docs/css/libvirt.css @@ -476,7 +476,7 @@ td.enumvalue { margin-top: 0em; top: 100px; right: 0px; - width: 13em; + width: 15em; text-align: left; color: white; background: rgb(0, 95, 97); diff --git a/docs/page.xsl b/docs/page.xsl index 8a1a77fa99..1021899b3a 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -85,8 +85,8 @@
- - + + <= /span>
--=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org