Skip to content

Commit b6bdeff

Browse files
committed
Update with GatsbyJS based skeleton
1 parent 96ac057 commit b6bdeff

File tree

67 files changed

+10541
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+10541
-34
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[*]
2+
indent_style = space
3+
end_of_line = lf
4+
insert_final_newline = true
5+
trim_trailing_whitespace = true
6+
charset = utf-8
7+
8+
[*.cfg]
9+
indent_size = 4
10+
11+
[{*.js, *.json}]
12+
indent_size = 2
13+
14+
[Makefile]
15+
indent_style = tab

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.cache/
2+
.idea/
3+
.DS_Store
4+
.secrets
5+
node_modules
6+
yarn-error.log

Makefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
SHELL := /usr/bin/env bash
2+
export PATH := node_modules/.bin:$(PATH)
3+
4+
SOURCES := $(shell find src -type f)
5+
6+
GATSBY_BUILD_FLAGS ?= --prefix-paths
7+
8+
.PHONY: all
9+
all: build
10+
11+
.PHONY: build
12+
build: public
13+
14+
.PHONY: clean
15+
clean:
16+
$(RM) -r .cache public
17+
18+
.PHONY: develop
19+
develop: node_modules
20+
gatsby develop
21+
22+
.PHONY: purge
23+
purge: clean
24+
$(RM) -r node_modules
25+
26+
.PHONY: format
27+
format: node_modules
28+
prettier --write $$(find src -name "*.js")
29+
prettier --write --single-quote false $$(find src -name "*.scss")
30+
31+
.PHONY: serve
32+
serve: node_modules public
33+
python -m SimpleHTTPServer 9000
34+
35+
.PHONY: watch
36+
watch: develop
37+
38+
.PHONY: public
39+
public: node_modules $(SOURCES)
40+
gatsby build ${GATSBY_BUILD_FLAGS}
41+
42+
node_modules: package.json
43+
yarn install
44+
touch node_modules

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Getting started
2+
===============
3+
4+
Build requirements:
5+
6+
* [GNU make](https://www.gnu.org/software/make/)
7+
* [jq](https://stedolan.github.io/jq/)
8+
* [yarn](https://yarnpkg.com/lang/en/)
9+
10+
Starting development server:
11+
12+
```bash
13+
make watch
14+
```

gatsby-config.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
siteMetadata: {
3+
title: 'Robots From Jupyter',
4+
},
5+
pathPrefix: '/public/',
6+
plugins: [
7+
{
8+
resolve: 'gatsby-source-filesystem',
9+
options: {
10+
path: `${__dirname}/src/static`,
11+
},
12+
},
13+
{
14+
resolve: 'gatsby-plugin-manifest',
15+
options: {
16+
name: 'Robots From Jupyter',
17+
short_name: 'RobotLab',
18+
start_url: '/',
19+
background_color: '#ffffff',
20+
theme_color: '#f46524',
21+
display: 'standalone',
22+
icon: './src/static/icon.png',
23+
},
24+
},
25+
'gatsby-plugin-react-helmet',
26+
'gatsby-plugin-sass',
27+
'gatsby-plugin-sharp',
28+
'gatsby-transformer-sharp',
29+
],
30+
};

index.html

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>robots-from-jupyter</title>
6-
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" />
7-
<style>
8-
body {
9-
position: absolute;
10-
top: 0;
11-
right: 0;
12-
left: 0;
13-
bottom: 0;
14-
display: flex;
15-
flex-direction: column;
16-
align-items: center;
17-
align-content: center;
18-
justify-content: center;
19-
20-
background: #f46524;
21-
color: white;
22-
font-family: "Lato", sans-serif;
23-
}
24-
a {
25-
color: white;
26-
}
27-
a:hover {
28-
color: white;
29-
text-decoration: none;
30-
}
31-
</style>
5+
<title>robots-from-jupyter.github.io</title>
6+
<meta http-equiv="refresh" content="0;URL='/public/'" />
327
</head>
33-
<body style="">
34-
<h1>robots-from-jupyter.github.io</h1>
35-
<h1><a href="RobotLab-Workshop_2019-01-16.pdf">Workshop 16.1.2019</a></h1>
36-
<h2><a href="https://github.com/robots-from-jupyter/robotlab/releases
37-
">RobotLab installer</a></h1>
38-
<h2><a href="https://github.com/robots-from-jupyter/robotkernel/archive/master.zip">RobotKernel notebooks</a></h1>
39-
<h1><a href="RoboCon-Presentation_2019-01-17.pdf">Presentation 17.1.2019</a></h1>
8+
<body>
409
</body>
4110
</html>

package.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"name": "robots-from-jupyter-github-io",
3+
"description": "https://robots-from-jupyter.github.io/",
4+
"version": "1.0.0",
5+
"author": "Asko Soukka <[email protected]>",
6+
"babel": {
7+
"presets": [
8+
"@babel/preset-env",
9+
[
10+
"@babel/preset-react",
11+
{
12+
"useBuiltIns": true,
13+
"pragma": "React.createElement"
14+
}
15+
]
16+
],
17+
"plugins": [
18+
"@babel/plugin-proposal-class-properties",
19+
"@babel/plugin-proposal-object-rest-spread",
20+
"@babel/plugin-syntax-dynamic-import",
21+
[
22+
"@babel/plugin-transform-runtime",
23+
{
24+
"helpers": true,
25+
"regenerator": true
26+
}
27+
]
28+
]
29+
},
30+
"resolutions": {
31+
"babel-core": "7.0.0-bridge.0",
32+
"react-dev-utils": "^4.2.2"
33+
},
34+
"main": "n/a",
35+
"devDependencies": {
36+
"@babel/cli": "^7.2.3",
37+
"@babel/plugin-proposal-class-properties": "^7.3.4",
38+
"@babel/plugin-proposal-object-rest-spread": "^7.3.4",
39+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
40+
"@babel/plugin-transform-runtime": "^7.3.4",
41+
"@babel/preset-env": "^7.3.4",
42+
"@babel/preset-react": "^7.0.0",
43+
"axios": "^0.18.0",
44+
"bootstrap": "^4.3.1",
45+
"eslint-config-react-app": "^3.0.8",
46+
"gatsby": "^2.1.33",
47+
"gatsby-image": "^2.0.33",
48+
"gatsby-plugin-manifest": "^2.0.24",
49+
"gatsby-plugin-react-helmet": "^3.0.9",
50+
"gatsby-plugin-sass": "^2.0.11",
51+
"gatsby-plugin-sharp": "^2.0.28",
52+
"gatsby-source-filesystem": "^2.0.25",
53+
"gatsby-transformer-sharp": "^2.1.17",
54+
"node-sass": "^4.11.0",
55+
"prettier": "^1.16.4",
56+
"react": "^16.8.4",
57+
"react-dom": "^16.8.4",
58+
"react-helmet": "^5.2.0",
59+
"react-icons": "^3.5.0"
60+
},
61+
"dependencies": {
62+
"react-slick": "^0.23.2",
63+
"react-youtube": "^7.9.0"
64+
}
65+
}

public/1-512a024efca57c376b17.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/1-512a024efca57c376b17.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/404.html

Lines changed: 6 additions & 0 deletions
Large diffs are not rendered by default.

public/404/index.html

Lines changed: 6 additions & 0 deletions
Large diffs are not rendered by default.

public/7-534a2e721f3a7c17264a.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/7-534a2e721f3a7c17264a.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app-9644dd85a37b36912069.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app-9644dd85a37b36912069.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/chunk-map.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"app":["/app-9644dd85a37b36912069.js"],"component---src-pages-404-js":["/component---src-pages-404-js-4d22a3b6b5d29622b2d4.js"],"component---src-pages-index-js":["/component---src-pages-index-js-8784518855646875bb4b.js"],"pages-manifest":["/pages-manifest-668b21febab3230aa6f0.js"]}

public/component---src-pages-404-js-4d22a3b6b5d29622b2d4.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)