mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
build fixes
This commit is contained in:
parent
42d7f1e0be
commit
e9088bd085
@ -32,7 +32,9 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
graphql(
|
graphql(
|
||||||
`
|
`
|
||||||
{
|
{
|
||||||
allMarkdownRemark {
|
allMarkdownRemark(
|
||||||
|
filter: { fileAbsolutePath: { regex: "/content/" } }
|
||||||
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
fields {
|
fields {
|
||||||
|
@ -54,9 +54,6 @@ export default class Sidebar extends Component {
|
|||||||
render() {
|
render() {
|
||||||
const { sidebar, location } = this.props
|
const { sidebar, location } = this.props
|
||||||
|
|
||||||
// hacky build fix
|
|
||||||
if (sidebar !== ('concepts' || 'setup' || 'tutorials')) return null
|
|
||||||
|
|
||||||
const sidebarfile = sidebar
|
const sidebarfile = sidebar
|
||||||
? require(`../../data/sidebars/${sidebar}.yml`) // eslint-disable-line
|
? require(`../../data/sidebars/${sidebar}.yml`) // eslint-disable-line
|
||||||
: []
|
: []
|
||||||
|
@ -21,7 +21,7 @@ const SetupIndexPage = ({ data, location }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout location={location}>
|
<Layout location={location}>
|
||||||
<HeaderSection title="Setup Guides" />
|
<HeaderSection title={['Setup Guides']} />
|
||||||
<Content>
|
<Content>
|
||||||
<ul>{SetupList}</ul>
|
<ul>{SetupList}</ul>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -21,7 +21,7 @@ const TutorialsIndexPage = ({ data, location }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout location={location}>
|
<Layout location={location}>
|
||||||
<HeaderSection title="Tutorials" />
|
<HeaderSection title={['Tutorials']} />
|
||||||
<Content>
|
<Content>
|
||||||
<ul>{TutorialsList}</ul>
|
<ul>{TutorialsList}</ul>
|
||||||
</Content>
|
</Content>
|
||||||
|
Loading…
Reference in New Issue
Block a user