Skip to content

Commit 0829177

Browse files
committed
WIP
1 parent 65f7cc9 commit 0829177

File tree

10 files changed

+15264
-0
lines changed

10 files changed

+15264
-0
lines changed

www/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../.babelrc"
3+
}

www/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.cache/
2+
public/

www/gatsby-config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
siteMetadata: {
3+
title: '@restart/hooks',
4+
author: 'Jason Quense',
5+
},
6+
plugins: [
7+
{
8+
resolve: '@docpocalypse/gatsby-theme',
9+
options: {
10+
sources: [`${__dirname}/../src`],
11+
getImportName(docNode) {
12+
return `import { ${docNode.name} } from '${docNode.packageName}'`
13+
},
14+
},
15+
},
16+
],
17+
}

www/gatsby-node.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Tells gatsby how to find the babel config for the src files as well as itself
2+
exports.onCreateBabelConfig = ({ actions }) => {
3+
actions.setBabelOptions({
4+
options: {
5+
babelrcRoots: true,
6+
},
7+
})
8+
}

www/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "docs-site",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"start": "gatsby develop",
7+
"build": "gatsby build"
8+
},
9+
"dependencies": {
10+
"@docpocalypse/gatsby-theme": "^0.8.12",
11+
"gatsby": "^2.18.11",
12+
"react": "^16.12.0",
13+
"react-dom": "^16.12.0"
14+
}
15+
}

www/src/@docpocalypse/gatsby-theme/components/.gitkeep

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default () => null

www/src/examples/.gitkeep

Whitespace-only changes.

www/src/pages/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default () => 'Hello world';

www/yarn.lock

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

0 commit comments

Comments
 (0)