From patchwork Sat Apr 10 15:24:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luis Felipe X-Patchwork-Id: 28446 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 47A6427BC6E; Sat, 10 Apr 2021 16:25:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 73A2F27BC6E for ; Sat, 10 Apr 2021 16:25:40 +0100 (BST) Received: from localhost ([::1]:37192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVFUR-0007wX-Io for patchwork@mira.cbaines.net; Sat, 10 Apr 2021 11:25:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVFTq-0007vf-IL for guix-patches@gnu.org; Sat, 10 Apr 2021 11:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVFTq-0002sE-AG for guix-patches@gnu.org; Sat, 10 Apr 2021 11:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVFTq-000105-6J for guix-patches@gnu.org; Sat, 10 Apr 2021 11:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47663] [PATCH] website: Add Help dropdown menu Resent-From: Luis Felipe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Apr 2021 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47663 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "pelzflorian (Florian Pelz)" Cc: Mathieu Othacehe , "47663@debbugs.gnu.org" <47663@debbugs.gnu.org> Received: via spool by 47663-submit@debbugs.gnu.org id=B47663.16180682763811 (code B ref 47663); Sat, 10 Apr 2021 15:25:02 +0000 Received: (at 47663) by debbugs.gnu.org; 10 Apr 2021 15:24:36 +0000 Received: from localhost ([127.0.0.1]:53046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVFTQ-0000zP-DA for submit@debbugs.gnu.org; Sat, 10 Apr 2021 11:24:36 -0400 Received: from mail-40141.protonmail.ch ([185.70.40.141]:37684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVFTO-0000zB-3e for 47663@debbugs.gnu.org; Sat, 10 Apr 2021 11:24:34 -0400 Date: Sat, 10 Apr 2021 15:24:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1618068266; bh=LNPtm7BXtPGXG+gUJcAwKa8bUtdX22Jm7HWVjvVAHmI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Noz1FGK2MoGqBWp1yPMWGYBKI4sYI9LsC3YxkaboQVcMf64ekTwXldUBRoj3vibMT QCDs+YFk6DnlZjp7xT7m1Lt8oWE3bE835rb4wZ7ymA+Cybhbg1Mjb3stUGsoMiGuDj 4/wYpYOsLdXRE36NfqHweVm/oSJxOHglVVKMNHkw= Message-ID: In-Reply-To: References: <878s5sq7bk.fsf@gnu.org> <87im4v479l.fsf_-_@gnu.org> <20210409191243.xgvp6c5jdammt6h3@pelzflorian.localdomain> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Luis Felipe X-ACL-Warn: , Luis Felipe via Guix-patches X-Patchwork-Original-From: Luis Felipe via Guix-patches via From: Luis Felipe X-getmail-retrieved-from-mailbox: Patches On Friday, April 9, 2021 7:51 PM, Luis Felipe wrote: > I think that is the right behavior, Florian. So I'll add the missing link as a new item, like so: > > Help > > - All ← Links to /help/ > - Etc. > - Etc. The attached patched does this. > And fix any remaining style issues for pointing and touch devices (cursor shouldn't be pointer (it wasn't before), and dropdown menu width should not shrink on click). > I'd like to address this separately, so I'll file a new issue and provide a patch once I have something. From 0666d8ec13d1fd069e4123c0b4ee52289650ab91 Mon Sep 17 00:00:00 2001 From: Luis Felipe Date: Sat, 10 Apr 2021 10:00:51 -0500 Subject: [PATCH] website: Add Help dropdown menu. This change converts the Help item of the primary navigation of the website into a dropdown menu listing the items currently available in the Help page. This was proposed in the thread "Document our WIP" sent to the guix-devel mailing list on March 27, 2021. * website/apps/base/templates/components.scm (navbar): Make Help a dropdown. --- website/apps/base/templates/components.scm | 44 +++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/website/apps/base/templates/components.scm b/website/apps/base/templates/components.scm index 7ca76cc..6ead1e5 100644 --- a/website/apps/base/templates/components.scm +++ b/website/apps/base/templates/components.scm @@ -405,7 +405,49 @@ manual. (menu-item #:label "Latest" #:active-item active-item #:url (guix-url "download/latest/"))))) - ,(C_ "website menu" (menu-item #:label "Help" #:active-item active-item #:url (guix-url "help/"))) + + ,(menu-dropdown #:label (C_ "website menu" "Help") + #:active-item active-item + #:items + (list + (C_ "website menu" + (menu-item #:label "All" + #:active-item active-item + #:url (guix-url "help/"))) + (C_ "website menu" + (menu-item #:label "GNU Guix Manual" + #:active-item active-item + #:url (guix-url "manual/"))) + (C_ "website menu" + (menu-item #:label "Guix Reference Card" + #:active-item active-item + #:url (guix-url "guix-refcard.pdf"))) + (C_ "website menu" + (menu-item #:label "Videos" + #:active-item active-item + #:url (guix-url "videos/"))) + (C_ "website menu" + (menu-item #:label "Cookbook" + #:active-item active-item + #:url (guix-url "cookbook/"))) + (C_ "website menu" + (menu-item #:label "GNU Manuals" + #:active-item active-item + #:url (gnu-url "manual/"))) + (C_ "website menu" + (menu-item #:label "Wiki" + #:active-item active-item + #:url (identity "https://libreplanet.org/wiki/Group:Guix"))) + (C_ "website menu" + (menu-item #:label "IRC Chat" + #:active-item active-item + #:url (guix-url "contact/irc/"))) + (C_ "website menu" + (menu-item #:label "Mailing Lists" + #:active-item active-item + #:url (guix-url "contact/"))))) + + ,(C_ "website menu" (menu-item #:label "Packages" #:active-item active-item #:url (guix-url "packages/"))) ,(C_ "website menu" (menu-item #:label "Blog" #:active-item active-item #:url (guix-url "blog/"))) base-commit: 3c7adcaa80a7e2f4af90b6d629beed46276d66af -- 2.31.0