Skip to content

Commit

Permalink
feat: added API links to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Jul 1, 2020
1 parent 2d1cfdb commit 48d4ca7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/NavigationItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const iconLibrary = {
'Automate workflows': 'automation',
'Explore docs': 'developerDocs',
'Developer champions': 'developerChampions',
'Try our APIs': 'tryOurAPIs',
};

const getHighlightedText = (text, highlight) => {
Expand Down
3 changes: 3 additions & 0 deletions src/components/NewRelicIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ const NEWRELIC_ICONS = {
<polyline points="14.5,14 11.5,11 8.5,14" />
</>
),
tryOurAPIs: (
<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" />
),
developerDocs: (
<>
<path d="M16.5 2.5c0 0-1.893 0-2 0 -2 0-3 1.5-3 3.5 0-2-1-3.5-3-3.5 -.5 0-8 0-8 0v16c0 0 6.5 0 8 0 2 0 3 1 3 3 0-2 1-3 3-3 1.5 0 8 0 8 0v-16h-2" />
Expand Down
13 changes: 13 additions & 0 deletions src/data/sidenav.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 48d4ca7

Please sign in to comment.