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

Merge branch 'feature/read-the-docs' of github.com:oceanprotocol/docs into feature/read-the-docs

This commit is contained in:
Akshay 2021-06-09 16:19:41 +02:00
commit 806e2088bd

View File

@ -132,12 +132,13 @@ exports.createPages = ({ graphql, actions }) => {
await createSwaggerPages(createPage) await createSwaggerPages(createPage)
// API: ocean.js // API: ocean.js
const lastRelease = result.data.oceanJs.repository.releases.edges.filter( const lastRelease =
({ node }) => result.data.oceanJs.repository.releases.edges.filter(
!node.isPrerelease && ({ node }) =>
!node.isDraft && !node.isPrerelease &&
node.releaseAssets.edges.length > 0 !node.isDraft &&
)[0].node.releaseAssets.edges[0].node node.releaseAssets.edges.length > 0
)[0].node.releaseAssets.edges[0].node
await createTypeDocPage( await createTypeDocPage(
createPage, createPage,