1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

output namespace

This commit is contained in:
Matthias Kretschmann 2019-03-27 14:47:25 +01:00
parent 524ead7d18
commit c33143d4ce
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 25 additions and 6 deletions

View File

@ -296,7 +296,10 @@ exports.createPages = ({ graphql, actions }) => {
description: `${metaSquidJava.name._text}. ${
metaSquidJava.description._text
}.`,
version: metaSquidJava.version._text
version: metaSquidJava.version._text,
namespace: `${metaSquidJava.groupId._text}.${
metaSquidJava.artifactId._text
}`
}
})
})

View File

@ -60,5 +60,5 @@
border-bottom: 1px solid $brand-grey-lighter;
padding-bottom: $spacer / 2;
margin-top: $spacer * 2;
margin-bottom: $spacer;
margin-bottom: $spacer / $line-height;
}

View File

@ -96,7 +96,7 @@ export default class JavadocTemplate extends Component {
render() {
const { location, pageContext } = this.props
const { javadoc, title, description, version } = pageContext
const { javadoc, title, description, version, namespace } = pageContext
return (
<>
@ -130,9 +130,14 @@ export default class JavadocTemplate extends Component {
title={title}
description={description}
prepend={
<span className={stylesDoc.version}>
{version}
</span>
<>
<span className={stylesDoc.version}>
{version}
</span>
<p className={styles.namespace}>
{namespace}
</p>
</>
}
/>

View File

@ -5,6 +5,10 @@
border: 1px solid $brand-grey-lighter;
margin-bottom: $spacer;
border-radius: $border-radius;
> p {
margin-bottom: $spacer;
}
}
.subHeading {
@ -21,3 +25,10 @@
margin-bottom: $spacer / 2;
margin-top: 0;
}
.namespace {
font-size: $font-size-base;
font-family: $font-family-monospace;
color: $brand-grey-light;
margin-top: $spacer / $line-height;
}