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

/reference/ -> /references/

This commit is contained in:
Matthias Kretschmann 2018-11-29 22:43:10 +01:00
parent 030d01dc0c
commit b23ce35ad5
Signed by: m
GPG Key ID: 606EEEF3C479A91F
8 changed files with 16 additions and 16 deletions

View File

@ -8,12 +8,12 @@
- name: aquarius - name: aquarius
links: links:
- name: API reference - name: API reference
url: /reference/aquarius/ url: /references/aquarius/
- name: brizo - name: brizo
links: links:
- name: API reference - name: API reference
url: /reference/brizo/ url: /references/brizo/
- name: pleuston - name: pleuston

View File

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

View File

@ -1,7 +1,7 @@
- group: Overview - group: Overview
items: items:
- title: API References - title: API References
link: /reference/introduction/ link: /references/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: /reference/aquarius/ link: /references/aquarius/
- group: brizo - group: brizo
items: items:
- title: API reference - title: API reference
link: /reference/brizo/ link: /references/brizo/
- group: pet store - group: pet store
items: items:
- title: API reference - title: API reference
link: /reference/petstore/ link: /references/petstore/

View File

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

View File

@ -23,7 +23,7 @@
color: $orange; color: $orange;
} }
:global(.reference) & { :global(.references) & {
color: $green; color: $green;
} }
} }

View File

@ -220,7 +220,7 @@ export default class ApiSwaggerTemplate extends Component {
// output section title as defined in sections.yml // output section title as defined in sections.yml
const sectionTitle = sections.map(({ node }) => { const sectionTitle = sections.map(({ node }) => {
// compare section against section title from sections.yml // compare section against section title from sections.yml
if (node.title.toLowerCase().includes('reference')) { if (node.title.toLowerCase().includes('references')) {
return node.title return node.title
} }
}) })
@ -228,7 +228,7 @@ export default class ApiSwaggerTemplate extends Component {
return ( return (
<> <>
<Helmet> <Helmet>
<body className={'reference'} /> <body className={'references'} />
</Helmet> </Helmet>
<SEO <SEO
@ -246,7 +246,7 @@ export default class ApiSwaggerTemplate extends Component {
<aside className={stylesDoc.sidebar}> <aside className={stylesDoc.sidebar}>
<Sidebar <Sidebar
location={location} location={location}
sidebar={'reference'} sidebar={'references'}
collapsed collapsed
toc toc
tableOfContents={toc(api) tableOfContents={toc(api)

View File

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