mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
build fixes
This commit is contained in:
parent
a53c227acc
commit
f5bc1ae68a
@ -136,9 +136,11 @@ const Repository = ({ name, links, readme }) => (
|
|||||||
object
|
object
|
||||||
} = repo
|
} = repo
|
||||||
|
|
||||||
const readmeHtml = remark()
|
const readmeHtml = object
|
||||||
|
? remark()
|
||||||
.use(remarkReact)
|
.use(remarkReact)
|
||||||
.processSync(object.text).contents
|
.processSync(object.text).contents
|
||||||
|
: null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article className={styles.repository}>
|
<article className={styles.repository}>
|
||||||
@ -155,7 +157,7 @@ const Repository = ({ name, links, readme }) => (
|
|||||||
/>
|
/>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{readme && (
|
{readme && object && (
|
||||||
<aside className={styles.repositoryReadme}>
|
<aside className={styles.repositoryReadme}>
|
||||||
<h3 className={styles.repositoryReadmeTitle}>
|
<h3 className={styles.repositoryReadmeTitle}>
|
||||||
README.md
|
README.md
|
||||||
|
@ -89,7 +89,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.repositoryReadme {
|
.repositoryReadme {
|
||||||
margin-top: $spacer;
|
margin-top: $spacer / $line-height;
|
||||||
|
padding: $spacer / 2;
|
||||||
|
background: darken($brand-white, 2%);
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2 {
|
h2 {
|
||||||
@ -104,9 +106,9 @@
|
|||||||
|
|
||||||
.repositoryReadmeTitle {
|
.repositoryReadmeTitle {
|
||||||
font-size: $font-size-small !important; // stylelint-disable-line
|
font-size: $font-size-small !important; // stylelint-disable-line
|
||||||
|
font-family: $font-family-monospace;
|
||||||
|
font-weight: $font-weight-base;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: $brand-grey-light;
|
color: $brand-grey-light;
|
||||||
margin-bottom: $spacer / 2;
|
margin-bottom: $spacer / 2;
|
||||||
padding-bottom: $spacer / 3;
|
|
||||||
border-bottom: 1px solid $brand-grey-lighter;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user