diff --git a/gatsby-config.js b/gatsby-config.js index f9e0ca4f..ddb2e0fc 100755 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,9 +1,13 @@ +const title = 'Ocean Protocol Documentation' +const description = + 'Learn everything about how to develop with Ocean Prototocol' +const siteUrl = process.env.SITE_URL || 'https://docs.oceanprotocol.com' + module.exports = { siteMetadata: { - title: 'Ocean Protocol Documentation', - description: - 'Learn everything about how to develop with Ocean Prototocol', - siteUrl: process.env.SITE_URL || 'https://docs.oceanprotocol.com' + title, + description, + siteUrl }, plugins: [ { @@ -66,6 +70,8 @@ module.exports = { ] } }, + 'gatsby-transformer-sharp', + 'gatsby-plugin-sharp', { resolve: 'gatsby-plugin-svgr', options: { @@ -76,8 +82,18 @@ module.exports = { }, 'gatsby-plugin-catch-links', 'gatsby-plugin-react-helmet', - 'gatsby-transformer-sharp', - 'gatsby-plugin-sharp' - // 'gatsby-plugin-offline', + { + resolve: 'gatsby-plugin-manifest', + options: { + name: title, + short_name: 'Docs', + start_url: '/', + background_color: '#e2e2e2', + theme_color: '#141414', + display: 'minimal-ui', + icon: 'src/images/profile.png' + } + }, + 'gatsby-plugin-offline' ] } diff --git a/package.json b/package.json index 102ca927..32a75117 100755 --- a/package.json +++ b/package.json @@ -5,23 +5,23 @@ "author": "Ocean Protocol ", "dependencies": { "@oceanprotocol/art": "^1.0.2", - "gatsby": "^2.0.40", - "gatsby-image": "^2.0.19", - "gatsby-plugin-catch-links": "^2.0.6", - "gatsby-plugin-manifest": "^2.0.7", - "gatsby-plugin-offline": "^2.0.12", + "gatsby": "^2.0.44", + "gatsby-image": "^2.0.20", + "gatsby-plugin-catch-links": "^2.0.8", + "gatsby-plugin-manifest": "^2.0.8", + "gatsby-plugin-offline": "^2.0.13", "gatsby-plugin-react-helmet": "^3.0.1", - "gatsby-plugin-sass": "^2.0.3", + "gatsby-plugin-sass": "^2.0.4", "gatsby-plugin-sharp": "^2.0.12", "gatsby-plugin-svgr": "^2.0.0-alpha", - "gatsby-remark-autolink-headers": "^2.0.10", + "gatsby-remark-autolink-headers": "^2.0.11", "gatsby-remark-images": "^2.0.6", "gatsby-remark-prismjs": "^3.0.3", "gatsby-remark-smartypants": "^2.0.6", - "gatsby-source-filesystem": "^2.0.7", - "gatsby-transformer-remark": "^2.1.11", + "gatsby-source-filesystem": "^2.0.8", + "gatsby-transformer-remark": "^2.1.12", "gatsby-transformer-sharp": "^2.1.8", - "gatsby-transformer-yaml": "^2.1.4", + "gatsby-transformer-yaml": "^2.1.5", "intersection-observer": "^0.5.1", "node-sass": "^4.10.0", "prismjs": "^1.15.0", @@ -38,7 +38,7 @@ "test": "eslint --ext .js,.jsx ." }, "devDependencies": { - "eslint": "^5.8.0", + "eslint": "^5.9.0", "eslint-config-oceanprotocol": "^1.3.0", "eslint-config-prettier": "^3.1.0", "eslint-plugin-prettier": "^3.0.0", diff --git a/src/components/Repositories/Repository.jsx b/src/components/Repositories/Repository.jsx index dd50feb7..4fb3385f 100644 --- a/src/components/Repositories/Repository.jsx +++ b/src/components/Repositories/Repository.jsx @@ -24,7 +24,7 @@ const Repository = ({ name, description, links }) => ( Repository.propTypes = { name: PropTypes.string.isRequired, description: PropTypes.string.isRequired, - links: PropTypes.array.isRequired + links: PropTypes.array } export default Repository diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index f5a858be..d3687b2b 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -54,6 +54,9 @@ 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 : [] diff --git a/src/images/profile.png b/src/images/profile.png new file mode 100644 index 00000000..b5852fcd Binary files /dev/null and b/src/images/profile.png differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 00000000..7db1da34 Binary files /dev/null and b/static/favicon.ico differ