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

package updates, fix build

This commit is contained in:
Matthias Kretschmann 2018-11-09 21:39:56 +01:00
parent b37159a5d6
commit 42d7f1e0be
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 38 additions and 19 deletions

View File

@ -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'
]
}

View File

@ -5,23 +5,23 @@
"author": "Ocean Protocol <devops@oceanprotocol.com>",
"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",

View File

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

View File

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

BIN
src/images/profile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB