mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
cleanup
This commit is contained in:
parent
873cc4b6c3
commit
a13a240872
@ -11,7 +11,7 @@ Aquarius provides an API to an off-chain database ("OceanDB") to store and manag
|
|||||||
|
|
||||||
The off-chain database might be MongoDB, Elasticsearch or BigchainDB.
|
The off-chain database might be MongoDB, Elasticsearch or BigchainDB.
|
||||||
|
|
||||||
<repo name="aquarius"></repo>
|
<repo name="aquarius" readme="true"></repo>
|
||||||
|
|
||||||
## Brizo
|
## Brizo
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
- title: Setup Guides
|
- title: Setup Guides
|
||||||
description: Setting up the Ocean Protocol components.
|
description: Setting up the Ocean Protocol components.
|
||||||
link: /setup/marketplace/
|
link: /setup/quickstart/
|
||||||
color: blue
|
color: blue
|
||||||
|
|
||||||
- title: Tutorials
|
- title: Tutorials
|
||||||
|
@ -106,6 +106,23 @@ Numbers.propTypes = {
|
|||||||
url: PropTypes.string.isRequired
|
url: PropTypes.string.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Readme = ({ object }) => {
|
||||||
|
const readmeHtml =
|
||||||
|
object &&
|
||||||
|
remark()
|
||||||
|
.use(remarkReact)
|
||||||
|
.processSync(object.text).contents
|
||||||
|
|
||||||
|
return (
|
||||||
|
object && (
|
||||||
|
<aside className={styles.repositoryReadme}>
|
||||||
|
<h3 className={styles.repositoryReadmeTitle}>README.md</h3>
|
||||||
|
{readmeHtml}
|
||||||
|
</aside>
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
const Repository = ({ name, links, readme }) => (
|
const Repository = ({ name, links, readme }) => (
|
||||||
<StaticQuery
|
<StaticQuery
|
||||||
query={queryGithub}
|
query={queryGithub}
|
||||||
@ -136,12 +153,6 @@ const Repository = ({ name, links, readme }) => (
|
|||||||
object
|
object
|
||||||
} = repo
|
} = repo
|
||||||
|
|
||||||
const readmeHtml = object
|
|
||||||
? remark()
|
|
||||||
.use(remarkReact)
|
|
||||||
.processSync(object.text).contents
|
|
||||||
: null
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article className={styles.repository}>
|
<article className={styles.repository}>
|
||||||
<Title name={name} releases={releases} url={url} />
|
<Title name={name} releases={releases} url={url} />
|
||||||
@ -157,14 +168,7 @@ const Repository = ({ name, links, readme }) => (
|
|||||||
/>
|
/>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{readme && object && (
|
{readme && <Readme object={object} />}
|
||||||
<aside className={styles.repositoryReadme}>
|
|
||||||
<h3 className={styles.repositoryReadmeTitle}>
|
|
||||||
README.md
|
|
||||||
</h3>
|
|
||||||
{readmeHtml}
|
|
||||||
</aside>
|
|
||||||
)}
|
|
||||||
</article>
|
</article>
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
@ -102,6 +102,10 @@
|
|||||||
h4 {
|
h4 {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.repositoryReadmeTitle {
|
.repositoryReadmeTitle {
|
||||||
|
Loading…
Reference in New Issue
Block a user