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

api -> reference

This commit is contained in:
Matthias Kretschmann 2018-11-28 18:10:58 +01:00
parent fbb14d8656
commit c6f995a7e4
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 16 additions and 16 deletions

View File

@ -13,7 +13,7 @@
link: /tutorials/introduction/
color: orange
- title: API References
description: Get the API references for all relevant components.
link: /api/introduction/
- title: API & Library References
description: Get the references for REST APIs and library methods for all relevant components.
link: /reference/introduction/
color: green

View File

@ -1,7 +1,7 @@
- group: Overview
items:
- title: API References
link: /api/introduction/
link: /reference/introduction/
# - group: squid-js
# items:
@ -11,14 +11,14 @@
- group: aquarius
items:
- title: API reference
link: /api/aquarius/
link: /reference/aquarius/
- group: brizo
items:
- title: API reference
link: /api/brizo/
link: /reference/brizo/
- group: pet store
items:
- title: API reference
link: /api/petstore/
link: /reference/petstore/

View File

@ -155,7 +155,7 @@ exports.createPages = ({ graphql, actions }) => {
'./src/templates/ApiSwagger.jsx'
)
const petStoreSlug = '/api/petstore/'
const petStoreSlug = '/reference/petstore/'
try {
const spec = await getSpec()
@ -173,7 +173,7 @@ exports.createPages = ({ graphql, actions }) => {
}
const aquariusSpecs = require('./data/aquarius.json')
const aquariusSlug = '/api/aquarius/'
const aquariusSlug = '/reference/aquarius/'
createPage({
path: aquariusSlug,
@ -185,7 +185,7 @@ exports.createPages = ({ graphql, actions }) => {
})
const brizoSpecs = require('./data/brizo.json')
const brizoSlug = '/api/brizo/'
const brizoSlug = '/reference/brizo/'
createPage({
path: brizoSlug,

View File

@ -50,8 +50,8 @@ const Method = ({ keyName, value }) => (
)
Method.propTypes = {
keyName: PropTypes.string,
value: PropTypes.object
keyName: PropTypes.string.isRequired,
value: PropTypes.object.isRequired
}
export default class ApiSwaggerTemplate extends Component {
@ -78,7 +78,7 @@ export default class ApiSwaggerTemplate extends Component {
return (
<>
<Helmet>
<body className={'api'} />
<body className={'reference'} />
</Helmet>
<SEO
@ -96,7 +96,7 @@ export default class ApiSwaggerTemplate extends Component {
<aside className={stylesDoc.sidebar}>
<Sidebar
location={location}
sidebar={'api'}
sidebar={'reference'}
collapsed
toc
tableOfContents={toc(api)

View File

@ -54,7 +54,7 @@ export default class DocTemplate extends Component {
}
})
const isApiSection = location.pathname.includes('/api/')
const isApiSection = location.pathname.includes('/reference/')
return (
<>
@ -83,7 +83,7 @@ export default class DocTemplate extends Component {
toc={
isApiSection &&
!location.pathname.includes(
'/api/introduction/'
'/reference/introduction/'
)
}
tableOfContents={tableOfContents}