From: Luis Felipe via Guix-patches via <guix-patches@gnu.org>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: Mathieu Othacehe <othacehe@gnu.org>,
"47663@debbugs.gnu.org" <47663@debbugs.gnu.org>
Subject: [bug#47663] [PATCH] website: Add Help dropdown menu
Date: Sat, 10 Apr 2021 15:24:17 +0000 [thread overview]
Message-ID: <l3yrw2q6Qcc7fmAqycvuPU7Fq2KohdDG9NBu6plSWZ97SePYBDBdRjW8uLrlJx3fgIkgGgV7f9tBLX5ywg1Zp4kWr-gO8HbeXmOw4s_y8Bc=@protonmail.com> (raw)
In-Reply-To: <eDO1rx9LekchmcIgattkzA_lRu040BLm8aaCIrzv0x3cVwa2cAHTPcmYSQw6_S_5O5qI7nM5QPDT2_RD35qIyeZCvuQ2MMzNk-EO06Iovxg=@protonmail.com>
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
On Friday, April 9, 2021 7:51 PM, Luis Felipe <luis.felipe.la@protonmail.com> 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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-website-Add-Help-dropdown-menu.patch --]
[-- Type: text/x-patch; name=0001-website-Add-Help-dropdown-menu.patch, Size: 3869 bytes --]
From 0666d8ec13d1fd069e4123c0b4ee52289650ab91 Mon Sep 17 00:00:00 2001
From: Luis Felipe <luis.felipe.la@protonmail.com>
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
next prev parent reply other threads:[~2021-04-10 15:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 19:49 [bug#47663] [PATCH] website: Add Help dropdown menu Luis Felipe via Guix-patches via
2021-04-09 6:51 ` Mathieu Othacehe
2021-04-09 13:32 ` Luis Felipe via Guix-patches via
2021-04-09 18:55 ` Mathieu Othacehe
2021-04-09 19:12 ` pelzflorian (Florian Pelz)
2021-04-09 19:51 ` Luis Felipe via Guix-patches via
2021-04-10 15:24 ` Luis Felipe via Guix-patches via [this message]
2021-04-10 18:51 ` Mathieu Othacehe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='l3yrw2q6Qcc7fmAqycvuPU7Fq2KohdDG9NBu6plSWZ97SePYBDBdRjW8uLrlJx3fgIkgGgV7f9tBLX5ywg1Zp4kWr-gO8HbeXmOw4s_y8Bc=@protonmail.com' \
--to=guix-patches@gnu.org \
--cc=47663@debbugs.gnu.org \
--cc=luis.felipe.la@protonmail.com \
--cc=othacehe@gnu.org \
--cc=pelzflorian@pelzflorian.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.