From f03492428670e6fad587d47600ddfb0aea08f0c4 Mon Sep 17 00:00:00 2001 From: Ike Saunders Date: Sat, 28 Oct 2023 13:35:32 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20sidebar=20entry=20for=20all?= =?UTF-8?q?=20charts=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/model/Gdoc/archieToEnriched.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/db/model/Gdoc/archieToEnriched.ts b/db/model/Gdoc/archieToEnriched.ts index d656f72c1be..db6c554dcff 100644 --- a/db/model/Gdoc/archieToEnriched.ts +++ b/db/model/Gdoc/archieToEnriched.ts @@ -146,6 +146,14 @@ function generateToc( }) } } + if (child.type === "all-charts") { + toc.push({ + title: child.heading, + text: child.heading, + slug: ALL_CHARTS_ID, + isSubheading: false, + }) + } }) )