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(
`
{
allMarkdownRemark {
allMarkdownRemark(
filter: { fileAbsolutePath: { regex: "/content/" } }
) {
edges {
node {
fields {

View File

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

View File

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

View File

@ -21,7 +21,7 @@ const TutorialsIndexPage = ({ data, location }) => {
return (
<Layout location={location}>
<HeaderSection title="Tutorials" />
<HeaderSection title={['Tutorials']} />
<Content>
<ul>{TutorialsList}</ul>
</Content>