1
0
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:
Matthias Kretschmann 2019-03-27 12:57:29 +01:00
parent 94947912f0
commit 34fb7be091
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -15,16 +15,34 @@ import Toc from './Toc'
import { cleanPaths } from './utils'
const Paths = ({ javadoc }) => {
return Object.keys(javadoc).map(path => (
return Object.entries(javadoc).map(([key, value]) => (
<div
key={path}
id={slugify(cleanPaths(path), {
key={key}
id={slugify(cleanPaths(key), {
remove: /[*+~.()'"/!:@]/g
})}
>
<h2 className={stylesDoc.pathName}>
<code>{cleanPaths(path)}</code>
<code>{cleanPaths(key)}</code>
</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>
))
}