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

build fixes

This commit is contained in:
Matthias Kretschmann 2018-11-09 22:10:35 +01:00
parent 42d7f1e0be
commit e9088bd085
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 5 additions and 6 deletions

View File

@ -32,7 +32,9 @@ exports.createPages = ({ graphql, actions }) => {
graphql( graphql(
` `
{ {
allMarkdownRemark { allMarkdownRemark(
filter: { fileAbsolutePath: { regex: "/content/" } }
) {
edges { edges {
node { node {
fields { fields {

View File

@ -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
: [] : []

View File

@ -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>

View File

@ -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>