1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

squid-js -> ocean.js

This commit is contained in:
trentmc 2020-10-25 15:05:11 +01:00
parent 02ff37518e
commit 5bc056ceba

View File

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