1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-06-30 05:31:57 +02:00
This commit is contained in:
Matthias Kretschmann 2018-11-16 10:33:31 +01:00
parent 873cc4b6c3
commit a13a240872
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 24 additions and 16 deletions

View File

@ -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

View File

@ -5,7 +5,7 @@
- title: Setup Guides
description: Setting up the Ocean Protocol components.
link: /setup/marketplace/
link: /setup/quickstart/
color: blue
- title: Tutorials

View File

@ -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>
)
}}

View File

@ -102,6 +102,10 @@
h4 {
font-size: $font-size-base;
}
img {
display: inline-block;
}
}
.repositoryReadmeTitle {