From patchwork Thu Apr 8 19:49:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luis Felipe X-Patchwork-Id: 28417 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 86B2C27BC6E; Thu, 8 Apr 2021 20:50:12 +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 9D0C927BC6D for ; Thu, 8 Apr 2021 20:50:11 +0100 (BST) Received: from localhost ([::1]:53050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUafK-00078M-Ki for patchwork@mira.cbaines.net; Thu, 08 Apr 2021 15:50:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUafC-000771-KV for guix-patches@gnu.org; Thu, 08 Apr 2021 15:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUafC-0003Rf-Cg for guix-patches@gnu.org; Thu, 08 Apr 2021 15:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUafC-0000S1-9l for guix-patches@gnu.org; Thu, 08 Apr 2021 15:50: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: Thu, 08 Apr 2021 19:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47663 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47663@debbugs.gnu.org X-Debbugs-Original-To: Luis Felipe via Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.16179113701688 (code B ref -1); Thu, 08 Apr 2021 19:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Apr 2021 19:49:30 +0000 Received: from localhost ([127.0.0.1]:48377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUaef-0000R8-KL for submit@debbugs.gnu.org; Thu, 08 Apr 2021 15:49:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:53420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUaeb-0000Qu-MO for submit@debbugs.gnu.org; Thu, 08 Apr 2021 15:49:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUaea-0006Zw-TR for guix-patches@gnu.org; Thu, 08 Apr 2021 15:49:25 -0400 Received: from mail-40130.protonmail.ch ([185.70.40.130]:35649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUaeX-0002wR-33 for guix-patches@gnu.org; Thu, 08 Apr 2021 15:49:24 -0400 Date: Thu, 08 Apr 2021 19:49:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1617911350; bh=qNLjTwB3BHAkq7mNCVk5xpfQjAhlU8c9ze0g9HHhGIA=; h=Date:To:From:Reply-To:Subject:From; b=XnWB1fkBJzi0Wzf1bphsDas4XVS9D0Eqoy/cBmp2TCw9VfEONNKD7xtGEy/x5mRD/ NaXxjaChBclGPrAj2kEiAEeOgJGvtjG7ovA6mA2+MWQ3BB8RpZUyL+lFq1a0KVf7vF agzNEfvGyR+e9ND9mOfFepSV88rQTBuQ6Ti8ElkE= Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.130; envelope-from=luis.felipe.la@protonmail.com; helo=mail-40130.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 Hi, This patch converts the Help item of the navigation bar into a dropdown menu as proposed in the thread "Document our WIP" (https://lists.gnu.org/archive/html/guix-devel/2021-03/msg00532.html). --- Luis Felipe López Acevedo https://luis-felipe.gitlab.io/ From dad14c86f4feee4a5e41748db4935870afe15e43 Mon Sep 17 00:00:00 2001 From: Luis Felipe Date: Thu, 8 Apr 2021 14:34:37 -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 | 40 +++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/website/apps/base/templates/components.scm b/website/apps/base/templates/components.scm index 7ca76cc..c965d41 100644 --- a/website/apps/base/templates/components.scm +++ b/website/apps/base/templates/components.scm @@ -405,7 +405,45 @@ 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 "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: c46cc7d80a1e90d3d841e5b59f6e131bf2052c87 -- 2.31.0