mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
api -> reference
This commit is contained in:
parent
fbb14d8656
commit
c6f995a7e4
@ -13,7 +13,7 @@
|
|||||||
link: /tutorials/introduction/
|
link: /tutorials/introduction/
|
||||||
color: orange
|
color: orange
|
||||||
|
|
||||||
- title: API References
|
- title: API & Library References
|
||||||
description: Get the API references for all relevant components.
|
description: Get the references for REST APIs and library methods for all relevant components.
|
||||||
link: /api/introduction/
|
link: /reference/introduction/
|
||||||
color: green
|
color: green
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
- group: Overview
|
- group: Overview
|
||||||
items:
|
items:
|
||||||
- title: API References
|
- title: API References
|
||||||
link: /api/introduction/
|
link: /reference/introduction/
|
||||||
|
|
||||||
# - group: squid-js
|
# - group: squid-js
|
||||||
# items:
|
# items:
|
||||||
@ -11,14 +11,14 @@
|
|||||||
- group: aquarius
|
- group: aquarius
|
||||||
items:
|
items:
|
||||||
- title: API reference
|
- title: API reference
|
||||||
link: /api/aquarius/
|
link: /reference/aquarius/
|
||||||
|
|
||||||
- group: brizo
|
- group: brizo
|
||||||
items:
|
items:
|
||||||
- title: API reference
|
- title: API reference
|
||||||
link: /api/brizo/
|
link: /reference/brizo/
|
||||||
|
|
||||||
- group: pet store
|
- group: pet store
|
||||||
items:
|
items:
|
||||||
- title: API reference
|
- title: API reference
|
||||||
link: /api/petstore/
|
link: /reference/petstore/
|
@ -155,7 +155,7 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
'./src/templates/ApiSwagger.jsx'
|
'./src/templates/ApiSwagger.jsx'
|
||||||
)
|
)
|
||||||
|
|
||||||
const petStoreSlug = '/api/petstore/'
|
const petStoreSlug = '/reference/petstore/'
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const spec = await getSpec()
|
const spec = await getSpec()
|
||||||
@ -173,7 +173,7 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const aquariusSpecs = require('./data/aquarius.json')
|
const aquariusSpecs = require('./data/aquarius.json')
|
||||||
const aquariusSlug = '/api/aquarius/'
|
const aquariusSlug = '/reference/aquarius/'
|
||||||
|
|
||||||
createPage({
|
createPage({
|
||||||
path: aquariusSlug,
|
path: aquariusSlug,
|
||||||
@ -185,7 +185,7 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const brizoSpecs = require('./data/brizo.json')
|
const brizoSpecs = require('./data/brizo.json')
|
||||||
const brizoSlug = '/api/brizo/'
|
const brizoSlug = '/reference/brizo/'
|
||||||
|
|
||||||
createPage({
|
createPage({
|
||||||
path: brizoSlug,
|
path: brizoSlug,
|
||||||
|
@ -50,8 +50,8 @@ const Method = ({ keyName, value }) => (
|
|||||||
)
|
)
|
||||||
|
|
||||||
Method.propTypes = {
|
Method.propTypes = {
|
||||||
keyName: PropTypes.string,
|
keyName: PropTypes.string.isRequired,
|
||||||
value: PropTypes.object
|
value: PropTypes.object.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class ApiSwaggerTemplate extends Component {
|
export default class ApiSwaggerTemplate extends Component {
|
||||||
@ -78,7 +78,7 @@ export default class ApiSwaggerTemplate extends Component {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<body className={'api'} />
|
<body className={'reference'} />
|
||||||
</Helmet>
|
</Helmet>
|
||||||
|
|
||||||
<SEO
|
<SEO
|
||||||
@ -96,7 +96,7 @@ export default class ApiSwaggerTemplate extends Component {
|
|||||||
<aside className={stylesDoc.sidebar}>
|
<aside className={stylesDoc.sidebar}>
|
||||||
<Sidebar
|
<Sidebar
|
||||||
location={location}
|
location={location}
|
||||||
sidebar={'api'}
|
sidebar={'reference'}
|
||||||
collapsed
|
collapsed
|
||||||
toc
|
toc
|
||||||
tableOfContents={toc(api)
|
tableOfContents={toc(api)
|
||||||
|
@ -54,7 +54,7 @@ export default class DocTemplate extends Component {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const isApiSection = location.pathname.includes('/api/')
|
const isApiSection = location.pathname.includes('/reference/')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -83,7 +83,7 @@ export default class DocTemplate extends Component {
|
|||||||
toc={
|
toc={
|
||||||
isApiSection &&
|
isApiSection &&
|
||||||
!location.pathname.includes(
|
!location.pathname.includes(
|
||||||
'/api/introduction/'
|
'/reference/introduction/'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
tableOfContents={tableOfContents}
|
tableOfContents={tableOfContents}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user