1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 08:20:22 +01:00

bug fix: I had recently renamed the squidjs stuff to oceanjs. But that caused errors, namely, gatsby-node.js would not complete so therefore redirects and more things would not work. So, reverting this part for now.

This commit is contained in:
trentmc 2020-10-25 17:11:45 +01:00
parent 44f6320487
commit 9ae04182fc

View File

@ -77,8 +77,8 @@ exports.createPages = ({ graphql, actions }) => {
}
}
oceanJs: github {
repository(name: "ocean.js", owner: "oceanprotocol") {
squidJs: github {
repository(name: "squid-js", owner: "oceanprotocol") {
name
releases(
first: 30
@ -88,7 +88,7 @@ exports.createPages = ({ graphql, actions }) => {
node {
isPrerelease
isDraft
releaseAssets(first: 1, name: "ocean.js.json") {
releaseAssets(first: 1, name: "squid-js.json") {
edges {
node {
name
@ -155,13 +155,13 @@ exports.createPages = ({ graphql, actions }) => {
// API: brizo, aquarius
await createSwaggerPages(createPage)
// API: ocean.js
const lastRelease = result.data.oceanJs.repository.releases.edges.filter(
// API: squid-js
const lastRelease = result.data.squidJs.repository.releases.edges.filter(
({ node }) => !node.isPrerelease && !node.isDraft
)[0].node.releaseAssets.edges[0].node
await createTypeDocPage(
createPage,
result.data.oceanJs.repository.name,
result.data.squidJs.repository.name,
lastRelease.downloadUrl
)