Skip to content

Commit ec76c60

Browse files
authored
Merge pull request linode#268 from hzoppetti/api-link-new-docs
[Update] API link to new docs UI
2 parents 0defe82 + f373193 commit ec76c60

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
dlcLinks: [
66
{
77
name: "API Documentation",
8-
link: "/api/v4"
8+
link: "http://www.linode.com/docs/api"
99
},
1010
{
1111
name: "Guides",

src/components/2_molecules/DLCMenu.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ const DLCMenu = ({ data }) => {
2121
>
2222
<div className="max-w-3xl mx-auto px-4 py-4">
2323
{dlcLinks.map(link => (
24-
<Link
24+
<a
2525
key={link.name}
26-
to={link.link}
27-
className="dlc-nav__link relative mx-4"
26+
href={link.link}
27+
className={`dlc-nav__link mx-4 ${link.name === "API Documentation" ? "" : "relative "}`}
2828
role="menuitem"
29-
activeClassName="active"
30-
getProps={link === "/" ? undefined : isPartiallyActive}
3129
>
3230
{link.name}
33-
</Link>
31+
</a>
3432
))}
3533
</div>
3634
</nav>

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const IndexPage = () => {
4141
<article className="w-full md:w-1/2 px-4 mb-4 md:mb-8">
4242
<div className="px-8 py-20 h-full bg-ThemeCell tile flex flex-col justify-center items-center">
4343
<h2 className="mt-0 font-normal text-center">
44-
<a href="/api/v4" className="text-black tile-link">
44+
<a href="https://www.linode.com/docs/api" className="text-black tile-link">
4545
API Documentation
4646
</a>
4747
</h2>

0 commit comments

Comments
 (0)