From nobody Thu Mar 28 21:09:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1678710152; cv=none; d=zohomail.com; s=zohoarc; b=bHu+3kZxCyCQbRlEGaalZRJt7pbA2Dt+30TgVO5U0M5ykX4t3fbeQi8X2d5FwWAJLjooNUKGcZ7WGtDSymcCDYG3gawD8xkloHGTq3c+Oc5DXIAhRzV33bylF7zsQVkppDyQ4kqGbmKFBbgTVo8I9DIZ3CtoJ3uaCKq6S/GM0jQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678710152; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=zmYJDmoOgAWGVGdwr9O0/X5D9ikV+YzbnL2S0ejDJEw=; b=nlx3LYtrn2W6Ib0AfvSUpr9E16BxULMfw27HY6waoVPzb1D1bHBBcQMmOfU1sMBGuCMZx62TDywE0DyECAzhz2zD1ObOwXMJ+DXsEX/S/qv/Lw6YGXhJSKmnH2L0Fopo91xbnVnOyd9yUvwYBqvk0IVkSvmv00/jmfAP2YnHVdY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1678710152781307.12013587476497; Mon, 13 Mar 2023 05:22:32 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-108-TAYoKZ1VOlCzo_xU8Mu93g-1; Mon, 13 Mar 2023 08:22:30 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E8F553815EE5; Mon, 13 Mar 2023 12:22:27 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D5B422A68; Mon, 13 Mar 2023 12:22:27 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 91A24194658F; Mon, 13 Mar 2023 12:22:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E8DC91946588 for ; Mon, 13 Mar 2023 12:22:26 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id BB6C1175AD; Mon, 13 Mar 2023 12:22:26 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4A8002A68 for ; Mon, 13 Mar 2023 12:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678710151; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=zmYJDmoOgAWGVGdwr9O0/X5D9ikV+YzbnL2S0ejDJEw=; b=b4Nfw21Zk3Q22oinkWUGzLqPG+2hhizwGOQUuFI5LEVZ3nS9pGrL3qhTG4xVEAfVgnSEAN 4yKpeQEKPKAj1nO117b95YyVjONa5oNN4Z55s1SsVQL7a97vc0hUl/qSjjoESe/l4MA4c3 +GxJp0FMeWD+KLKOUs3xXuEN4AEZcB0= X-MC-Unique: TAYoKZ1VOlCzo_xU8Mu93g-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH] docs: Fix searching in the wiki Date: Mon, 13 Mar 2023 13:22:25 +0100 Message-Id: <5557b573e2ac9a8515c423e38764e3cd7dbb756c.1678710145.git.pkrempa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1678710153002100001 Content-Type: text/plain; charset="utf-8" Conversion of the wiki to static pages means that the integrated search no longer functions. Use the same approach we have for other search to simply defer to google. Signed-off-by: Peter Krempa Reviewed-by: Daniel P. Berrang=C3=A9 --- docs/js/main.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/docs/js/main.js b/docs/js/main.js index 2edc628304..c37f9756a7 100644 --- a/docs/js/main.js +++ b/docs/js/main.js @@ -54,21 +54,16 @@ function advancedsearch(e) { } } + form.setAttribute("action", "https://google.com/search"); + newq.setAttribute("name", "q"); + if (what =3D=3D "website") { - form.setAttribute("action", "https://google.com/search"); - newq.setAttribute("name", "q"); newq.value =3D "site:libvirt.org " + q.value; } else if (what =3D=3D "wiki") { - form.setAttribute("action", "https://wiki.libvirt.org/index.php"); - newq.setAttribute("name", "search"); - newq.value =3D q.value; + newq.value =3D "site:wiki.libvirt.org " + q.value; } else if (what =3D=3D "devs") { - form.setAttribute("action", "https://google.com/search"); - newq.setAttribute("name", "q"); newq.value =3D "site:redhat.com/archives/libvir-list " + q.value; } else if (what =3D=3D "users") { - form.setAttribute("action", "https://google.com/search"); - newq.setAttribute("name", "q"); newq.value =3D "site:redhat.com/archives/libvirt-users " + q.value; } --=20 2.39.2