1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01: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. The off-chain database might be MongoDB, Elasticsearch or BigchainDB.
<repo name="aquarius"></repo> <repo name="aquarius" readme="true"></repo>
## Brizo ## Brizo

View File

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

View File

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

View File

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