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.
|
||||
|
||||
<repo name="aquarius"></repo>
|
||||
<repo name="aquarius" readme="true"></repo>
|
||||
|
||||
## Brizo
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
- title: Setup Guides
|
||||
description: Setting up the Ocean Protocol components.
|
||||
link: /setup/marketplace/
|
||||
link: /setup/quickstart/
|
||||
color: blue
|
||||
|
||||
- title: Tutorials
|
||||
|
@ -106,6 +106,23 @@ Numbers.propTypes = {
|
||||
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 }) => (
|
||||
<StaticQuery
|
||||
query={queryGithub}
|
||||
@ -136,12 +153,6 @@ const Repository = ({ name, links, readme }) => (
|
||||
object
|
||||
} = repo
|
||||
|
||||
const readmeHtml = object
|
||||
? remark()
|
||||
.use(remarkReact)
|
||||
.processSync(object.text).contents
|
||||
: null
|
||||
|
||||
return (
|
||||
<article className={styles.repository}>
|
||||
<Title name={name} releases={releases} url={url} />
|
||||
@ -157,14 +168,7 @@ const Repository = ({ name, links, readme }) => (
|
||||
/>
|
||||
</footer>
|
||||
|
||||
{readme && object && (
|
||||
<aside className={styles.repositoryReadme}>
|
||||
<h3 className={styles.repositoryReadmeTitle}>
|
||||
README.md
|
||||
</h3>
|
||||
{readmeHtml}
|
||||
</aside>
|
||||
)}
|
||||
{readme && <Readme object={object} />}
|
||||
</article>
|
||||
)
|
||||
}}
|
||||
|
@ -102,6 +102,10 @@
|
||||
h4 {
|
||||
font-size: $font-size-base;
|
||||
}
|
||||
|
||||
img {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.repositoryReadmeTitle {
|
||||
|
Loading…
Reference in New Issue
Block a user