From e69815e7f04d06cbf2ff255e8c8d2a5bac5d9fb1 Mon Sep 17 00:00:00 2001 From: John Donmoyer Date: Thu, 6 Jun 2024 16:21:01 -0400 Subject: [PATCH] updating secondary nav for mobile --- docusaurus.config.js | 8 +- src/components/APIReferenceIndex/index.tsx | 4 +- src/components/SecondaryNavbar.jsx | 27 ++++-- src/css/custom.css | 8 ++ src/pages/api/index.jsx | 8 -- src/pages/api/node.jsx | 95 ++++++++++++++++++++++ src/pages/api/web.jsx | 95 ++++++++++++++++++++++ 7 files changed, 228 insertions(+), 17 deletions(-) delete mode 100644 src/pages/api/index.jsx create mode 100644 src/pages/api/node.jsx create mode 100644 src/pages/api/web.jsx diff --git a/docusaurus.config.js b/docusaurus.config.js index 1961a9ee9..dab105d9b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -146,10 +146,14 @@ const config = { activeBaseRegex: `^/examples`, }, { - to: "/api", + to: "/api/deno", label: "API Reference", position: "left", - id: "toggleSecondaryNav", + items: [ + { to: "/api/deno", label: "Deno" }, + { to: "/api/web", label: "Web" }, + { to: "/api/node", label: "Node" }, + ], }, { href: "https://www.deno.com", diff --git a/src/components/APIReferenceIndex/index.tsx b/src/components/APIReferenceIndex/index.tsx index 3b7f0fddd..8cf23816a 100644 --- a/src/components/APIReferenceIndex/index.tsx +++ b/src/components/APIReferenceIndex/index.tsx @@ -24,7 +24,7 @@ const APIReferenceIndex: React.FC = ({ apiLinks }) => {