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

WIP: Ocean.js

This commit is contained in:
Akshay 2021-05-31 11:04:28 +02:00
parent ade83ba58b
commit e2b888f013
2 changed files with 7270 additions and 1404 deletions

View File

@ -131,10 +131,12 @@ exports.createPages = ({ graphql, actions }) => {
await createSwaggerPages(createPage)
// API: ocean.js
const lastRelease =
result.data.oceanJs.repository.releases.edges.filter(
({ node }) => !node.isPrerelease && !node.isDraft
)[0].node.releaseAssets.edges[0].node
const lastRelease = result.data.oceanJs.repository.releases.edges.filter(
({ node }) =>
!node.isPrerelease &&
!node.isDraft &&
node.releaseAssets.edges.length > 0
)[0].node.releaseAssets.edges[0].node
await createTypeDocPage(
createPage,
@ -175,7 +177,7 @@ exports.createPages = ({ graphql, actions }) => {
//
const createTypeDocPage = async (createPage, name, downloadUrl) => {
try {
const typedoc = require('./ocean.js.json')
const typedoc = require('./lib-0.14.9.json')
// const typedoc = await fetch(downloadUrl)
const typedocTemplate = path.resolve('./src/templates/Typedoc/index.jsx')
const slug = `/references/${name}/`

File diff suppressed because it is too large Load Diff