Skip to content

Commit cd2eb33

Browse files
committed
Fix homepage.
1 parent e2caf1b commit cd2eb33

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/content/http-api.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import HTTPAPI from "../plugins/gatsby-theme-flow/src/components/http-api";
22

33

4-
<HTTPAPI />
4+
<HTTPAPI specUrl="https://raw.githubusercontent.com/onflow/flow/master/openapi/access.yaml"
5+
/>

docs/content/index.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ import {
2525

2626

2727
<h3> ⚡️
28-
2928
<TrackingLink href="/http-api/" eventName="Homepage_link_/http-api/_clicked">
3029
Flow Access Node HTTP API
3130
</TrackingLink>
3231
</h3>
3332

3433
<ul className="grid-item-list">
3534
<li>
36-
35+
3736
The Flow access node API for REST clients. Usable with the <TrackingLink href="https://github.com/onflow/flow-emulator#configuration
3837
" eventName="Homepage_link_/flow-cli/_clicked">
3938
Flow CLI (Emulator)
@@ -44,7 +43,7 @@ import {
4443
" eventName="Homepage_link_/fcl/_clicked">
4544
FCL (Flow Client Library)
4645
</TrackingLink>
47-
46+
<br/>
4847
<span>https://rest-testnet.onflow.org/v1/</span>
4948
<p>Testnet: <TrackingLink event="Homepage*link*/http-api-testnet/\_clicked" href="/http-api/">View Documentation</TrackingLink></p>
5049

docs/plugins/gatsby-theme-flow/src/components/http-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RedocStandalone } from "redoc";
33

44
import CustomSEO from "./custom-seo";
55

6-
export default function AccessNodeHTTPAPI(props) {
6+
export default function AccessNodeHTTPAPI({ specUrl }) {
77
return (
88
<>
99
<CustomSEO
@@ -23,7 +23,7 @@ export default function AccessNodeHTTPAPI(props) {
2323
scrollYOffset: 101,
2424
nativeScrollbars: true
2525
}}
26-
specUrl="https://raw.githubusercontent.com/onflow/flow/master/openapi/access.yaml"
26+
specUrl={specUrl}
2727
/>
2828
</div>
2929
</>

0 commit comments

Comments
 (0)