mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
fix squid-js spec generation
This commit is contained in:
parent
d40bd712df
commit
a26728ada9
@ -243,6 +243,7 @@ exports.createPages = ({ graphql, actions }) => {
|
||||
'ocean/OceanAccounts',
|
||||
'ocean/OceanAssets',
|
||||
'ocean/OceanAgreements',
|
||||
'ocean/OceanVersions',
|
||||
'ocean/Account',
|
||||
'ocean/DID',
|
||||
'ocean/ServiceAgreements/ServiceAgreement',
|
||||
|
@ -54,8 +54,7 @@ const generateJson = () => {
|
||||
title: 'Squid-js',
|
||||
description,
|
||||
version,
|
||||
sourceUrl:
|
||||
'https://github.com/oceanprotocol/squid-js/tree/develop/src/'
|
||||
sourceUrl: 'https://github.com/oceanprotocol/squid-js/blob/master/'
|
||||
},
|
||||
...jsonOrig
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ export const cleanTypedocData = (data, useClasses) => {
|
||||
const cleanData = nodes
|
||||
.map(node => ({
|
||||
...node,
|
||||
name: node.name.replace(/"/g, ''),
|
||||
name: node.name.replace(/"/g, '').replace('src/', ''),
|
||||
child: node.children && node.children[0]
|
||||
}))
|
||||
.filter(({ name }) => (useClasses || []).includes(name))
|
||||
|
Loading…
Reference in New Issue
Block a user