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
|
||||
} = repo
|
||||
|
||||
const readmeHtml = remark()
|
||||
const readmeHtml = object
|
||||
? remark()
|
||||
.use(remarkReact)
|
||||
.processSync(object.text).contents
|
||||
: null
|
||||
|
||||
return (
|
||||
<article className={styles.repository}>
|
||||
@ -155,7 +157,7 @@ const Repository = ({ name, links, readme }) => (
|
||||
/>
|
||||
</footer>
|
||||
|
||||
{readme && (
|
||||
{readme && object && (
|
||||
<aside className={styles.repositoryReadme}>
|
||||
<h3 className={styles.repositoryReadmeTitle}>
|
||||
README.md
|
||||
|
@ -89,7 +89,9 @@
|
||||
}
|
||||
|
||||
.repositoryReadme {
|
||||
margin-top: $spacer;
|
||||
margin-top: $spacer / $line-height;
|
||||
padding: $spacer / 2;
|
||||
background: darken($brand-white, 2%);
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
@ -104,9 +106,9 @@
|
||||
|
||||
.repositoryReadmeTitle {
|
||||
font-size: $font-size-small !important; // stylelint-disable-line
|
||||
font-family: $font-family-monospace;
|
||||
font-weight: $font-weight-base;
|
||||
margin: 0;
|
||||
color: $brand-grey-light;
|
||||
margin-bottom: $spacer / 2;
|
||||
padding-bottom: $spacer / 3;
|
||||
border-bottom: 1px solid $brand-grey-lighter;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user