mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
/reference/ -> /references/
This commit is contained in:
parent
030d01dc0c
commit
b23ce35ad5
@ -8,12 +8,12 @@
|
||||
- name: aquarius
|
||||
links:
|
||||
- name: API reference
|
||||
url: /reference/aquarius/
|
||||
url: /references/aquarius/
|
||||
|
||||
- name: brizo
|
||||
links:
|
||||
- name: API reference
|
||||
url: /reference/brizo/
|
||||
url: /references/brizo/
|
||||
|
||||
- name: pleuston
|
||||
|
||||
|
@ -15,5 +15,5 @@
|
||||
|
||||
- title: API & Library References
|
||||
description: Get the references for REST APIs and library methods for all relevant components.
|
||||
link: /reference/introduction/
|
||||
link: /references/introduction/
|
||||
color: green
|
||||
|
@ -1,7 +1,7 @@
|
||||
- group: Overview
|
||||
items:
|
||||
- title: API References
|
||||
link: /reference/introduction/
|
||||
link: /references/introduction/
|
||||
|
||||
# - group: squid-js
|
||||
# items:
|
||||
@ -11,14 +11,14 @@
|
||||
- group: aquarius
|
||||
items:
|
||||
- title: API reference
|
||||
link: /reference/aquarius/
|
||||
link: /references/aquarius/
|
||||
|
||||
- group: brizo
|
||||
items:
|
||||
- title: API reference
|
||||
link: /reference/brizo/
|
||||
link: /references/brizo/
|
||||
|
||||
- group: pet store
|
||||
items:
|
||||
- title: API reference
|
||||
link: /reference/petstore/
|
||||
link: /references/petstore/
|
@ -156,7 +156,7 @@ exports.createPages = ({ graphql, actions }) => {
|
||||
'./src/templates/ApiSwagger.jsx'
|
||||
)
|
||||
|
||||
const petStoreSlug = '/reference/petstore/'
|
||||
const petStoreSlug = '/references/petstore/'
|
||||
|
||||
try {
|
||||
const spec = await getSpec()
|
||||
@ -174,7 +174,7 @@ exports.createPages = ({ graphql, actions }) => {
|
||||
}
|
||||
|
||||
const aquariusSpecs = require('./data/aquarius.json')
|
||||
const aquariusSlug = '/reference/aquarius/'
|
||||
const aquariusSlug = '/references/aquarius/'
|
||||
|
||||
createPage({
|
||||
path: aquariusSlug,
|
||||
@ -186,7 +186,7 @@ exports.createPages = ({ graphql, actions }) => {
|
||||
})
|
||||
|
||||
const brizoSpecs = require('./data/brizo.json')
|
||||
const brizoSlug = '/reference/brizo/'
|
||||
const brizoSlug = '/references/brizo/'
|
||||
|
||||
createPage({
|
||||
path: brizoSlug,
|
||||
|
@ -23,7 +23,7 @@
|
||||
color: $orange;
|
||||
}
|
||||
|
||||
:global(.reference) & {
|
||||
:global(.references) & {
|
||||
color: $green;
|
||||
}
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ export default class ApiSwaggerTemplate extends Component {
|
||||
// output section title as defined in sections.yml
|
||||
const sectionTitle = sections.map(({ node }) => {
|
||||
// compare section against section title from sections.yml
|
||||
if (node.title.toLowerCase().includes('reference')) {
|
||||
if (node.title.toLowerCase().includes('references')) {
|
||||
return node.title
|
||||
}
|
||||
})
|
||||
@ -228,7 +228,7 @@ export default class ApiSwaggerTemplate extends Component {
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
<body className={'reference'} />
|
||||
<body className={'references'} />
|
||||
</Helmet>
|
||||
|
||||
<SEO
|
||||
@ -246,7 +246,7 @@ export default class ApiSwaggerTemplate extends Component {
|
||||
<aside className={stylesDoc.sidebar}>
|
||||
<Sidebar
|
||||
location={location}
|
||||
sidebar={'reference'}
|
||||
sidebar={'references'}
|
||||
collapsed
|
||||
toc
|
||||
tableOfContents={toc(api)
|
||||
|
@ -54,7 +54,7 @@ export default class DocTemplate extends Component {
|
||||
}
|
||||
})
|
||||
|
||||
const isApiSection = location.pathname.includes('/reference/')
|
||||
const isApiSection = location.pathname.includes('/references/')
|
||||
|
||||
return (
|
||||
<>
|
||||
@ -83,7 +83,7 @@ export default class DocTemplate extends Component {
|
||||
toc={
|
||||
isApiSection &&
|
||||
!location.pathname.includes(
|
||||
'/reference/introduction/'
|
||||
'/references/introduction/'
|
||||
)
|
||||
}
|
||||
tableOfContents={tableOfContents}
|
||||
|
Loading…
Reference in New Issue
Block a user