From 48d4ca73a8ea540f50b7d29b979d92b0f3d2deb2 Mon Sep 17 00:00:00 2001 From: Zack Stickles Date: Wed, 1 Jul 2020 11:34:42 -0700 Subject: [PATCH] feat: added API links to sidebar --- src/components/NavigationItems.js | 1 + src/components/NewRelicIcon.js | 3 +++ src/data/sidenav.json | 13 +++++++++++++ 3 files changed, 17 insertions(+) diff --git a/src/components/NavigationItems.js b/src/components/NavigationItems.js index 91c38be17..3c757e168 100644 --- a/src/components/NavigationItems.js +++ b/src/components/NavigationItems.js @@ -14,6 +14,7 @@ const iconLibrary = { 'Automate workflows': 'automation', 'Explore docs': 'developerDocs', 'Developer champions': 'developerChampions', + 'Try our APIs': 'tryOurAPIs', }; const getHighlightedText = (text, highlight) => { diff --git a/src/components/NewRelicIcon.js b/src/components/NewRelicIcon.js index f916e6830..90b4269e7 100644 --- a/src/components/NewRelicIcon.js +++ b/src/components/NewRelicIcon.js @@ -54,6 +54,9 @@ const NEWRELIC_ICONS = { ), + tryOurAPIs: ( + + ), developerDocs: ( <> diff --git a/src/data/sidenav.json b/src/data/sidenav.json index eb9a026f8..49b76a9f0 100644 --- a/src/data/sidenav.json +++ b/src/data/sidenav.json @@ -81,6 +81,19 @@ } ] }, + { + "displayName": "Try our APIs", + "children": [ + { + "displayName": "New Relic API Explorer", + "url": "https://rpm.newrelic.com/api/explore" + }, + { + "displayName": "NerdGraph API Explorer", + "url": "https://api.newrelic.com/graphiql" + } + ] + }, { "displayName": "Explore docs", "children": [