mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
output class descriptions
This commit is contained in:
parent
94947912f0
commit
34fb7be091
@ -15,16 +15,34 @@ import Toc from './Toc'
|
|||||||
import { cleanPaths } from './utils'
|
import { cleanPaths } from './utils'
|
||||||
|
|
||||||
const Paths = ({ javadoc }) => {
|
const Paths = ({ javadoc }) => {
|
||||||
return Object.keys(javadoc).map(path => (
|
return Object.entries(javadoc).map(([key, value]) => (
|
||||||
<div
|
<div
|
||||||
key={path}
|
key={key}
|
||||||
id={slugify(cleanPaths(path), {
|
id={slugify(cleanPaths(key), {
|
||||||
remove: /[*+~.()'"/!:@]/g
|
remove: /[*+~.()'"/!:@]/g
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<h2 className={stylesDoc.pathName}>
|
<h2 className={stylesDoc.pathName}>
|
||||||
<code>{cleanPaths(path)}</code>
|
<code>{cleanPaths(key)}</code>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
{value[0][0].text}
|
||||||
|
|
||||||
|
<h4>Parameters</h4>
|
||||||
|
|
||||||
|
{/*
|
||||||
|
{value
|
||||||
|
.filter(item => {
|
||||||
|
return item.name === '@param'
|
||||||
|
})
|
||||||
|
.map(item => {
|
||||||
|
return item.text
|
||||||
|
})}
|
||||||
|
*/}
|
||||||
|
|
||||||
|
<h4>Returns</h4>
|
||||||
|
|
||||||
|
<h4>Throws</h4>
|
||||||
</div>
|
</div>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user