From 3621428093a79d033f0153f65f44e4f499bfaa47 Mon Sep 17 00:00:00 2001 From: maddalax Date: Tue, 15 Oct 2024 10:43:37 -0500 Subject: [PATCH] make docs a link --- htmgo-site/partials/sidebar.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/htmgo-site/partials/sidebar.go b/htmgo-site/partials/sidebar.go index a2af4b7..8387f48 100644 --- a/htmgo-site/partials/sidebar.go +++ b/htmgo-site/partials/sidebar.go @@ -59,7 +59,14 @@ func DocSidebar(pages []*dirwalk.Page) *h.Element { return h.Div( h.Class("px-3 py-2 pr-6 min-h-screen bg-neutral-50 border-r border-r-slate-300 overflow-y-auto"), h.Div( - h.H3(h.Text("Documentation"), h.Class("md:mt-4 text-xl text-slate-900 font-bold mb-3")), + h.Div( + h.Class("mb-3"), + h.A( + h.Href("#quick-start-introduction"), + h.Text("Documentation"), + h.Class("md:mt-4 text-xl text-slate-900 font-bold"), + ), + ), h.Div( h.Class("flex flex-col gap-4"), h.List(grouped.Entries(), func(entry datastructures.Entry[string, []*dirwalk.Page], index int) *h.Element {