diff --git a/content/concepts/architecture.md b/content/concepts/architecture.md index 21252d12..1b05e447 100644 --- a/content/concepts/architecture.md +++ b/content/concepts/architecture.md @@ -3,4 +3,4 @@ title: Architecture description: The architecture of Ocean Protocol with all its components and how they work together. --- -![Ocean Protocol Components](../images/components.png 'Ocean Protocol Components') +![Ocean Protocol Components](images/components.png 'Ocean Protocol Components') diff --git a/content/images/components.png b/content/concepts/images/components.png similarity index 100% rename from content/images/components.png rename to content/concepts/images/components.png diff --git a/gatsby-config.js b/gatsby-config.js index fcfe2ae7..2c2e0255 100755 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -19,6 +19,13 @@ module.exports = { path: `${__dirname}/content` } }, + { + resolve: 'gatsby-source-filesystem', + options: { + name: 'data', + path: `${__dirname}/src/data` + } + }, { resolve: 'gatsby-transformer-remark', options: { diff --git a/src/data/sections.yml b/src/data/sections.yml new file mode 100644 index 00000000..e25ea5f4 --- /dev/null +++ b/src/data/sections.yml @@ -0,0 +1,11 @@ +- title: Core Concepts + description: Understand the fundamentals of Ocean Protocol. + link: /concepts/introduction/ + +- title: Setup Guides + description: Setting up the Ocean Protocol components. + link: /setup/keeper/ + +- title: Tutorials + description: Browse tutorials for most common setup and development use-cases. + link: /tutorials/jupyter/ diff --git a/src/pages/index.js b/src/pages/index.js index 00eaa03e..da48b74f 100755 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,14 +1,14 @@ import React from 'react' import PropTypes from 'prop-types' -import { Link } from 'gatsby' +import { Link, graphql } from 'gatsby' import Layout from '../components/Layout' import Content from '../components/Content' -// import styles from './index.module.scss' +import styles from './index.module.scss' const SectionLink = ({ to, title, children }) => ( -
{children}
+{children}
) @@ -18,27 +18,39 @@ SectionLink.propTypes = { children: PropTypes.any } -const IndexPage = ({ location }) => ( +const IndexPage = ({ data, location }) => (