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(
|
||||
`
|
||||
{
|
||||
allMarkdownRemark {
|
||||
allMarkdownRemark(
|
||||
filter: { fileAbsolutePath: { regex: "/content/" } }
|
||||
) {
|
||||
edges {
|
||||
node {
|
||||
fields {
|
||||
|
@ -54,9 +54,6 @@ export default class Sidebar extends Component {
|
||||
render() {
|
||||
const { sidebar, location } = this.props
|
||||
|
||||
// hacky build fix
|
||||
if (sidebar !== ('concepts' || 'setup' || 'tutorials')) return null
|
||||
|
||||
const sidebarfile = sidebar
|
||||
? require(`../../data/sidebars/${sidebar}.yml`) // eslint-disable-line
|
||||
: []
|
||||
|
@ -21,7 +21,7 @@ const SetupIndexPage = ({ data, location }) => {
|
||||
|
||||
return (
|
||||
<Layout location={location}>
|
||||
<HeaderSection title="Setup Guides" />
|
||||
<HeaderSection title={['Setup Guides']} />
|
||||
<Content>
|
||||
<ul>{SetupList}</ul>
|
||||
</Content>
|
||||
|
@ -21,7 +21,7 @@ const TutorialsIndexPage = ({ data, location }) => {
|
||||
|
||||
return (
|
||||
<Layout location={location}>
|
||||
<HeaderSection title="Tutorials" />
|
||||
<HeaderSection title={['Tutorials']} />
|
||||
<Content>
|
||||
<ul>{TutorialsList}</ul>
|
||||
</Content>
|
||||
|
Loading…
Reference in New Issue
Block a user