mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
output namespace
This commit is contained in:
parent
524ead7d18
commit
c33143d4ce
@ -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
|
||||
}`
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user