Skip to content

Commit e348693

Browse files
committed
feat: replatform in gatsby, refactor docs
1 parent fd638a7 commit e348693

File tree

348 files changed

+22469
-36608
lines changed

Some content is hidden

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

348 files changed

+22469
-36608
lines changed

.editorconfig

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true

.eslintrc

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"extends": [
3+
"standard",
4+
"plugin:react/recommended"
5+
],
6+
"env": {
7+
"browser": true
8+
},
9+
"globals": {
10+
"graphql": false
11+
},
12+
"parser": "babel-eslint",
13+
"parserOptions": {
14+
"ecmaVersion": 10,
15+
"sourceType": "module",
16+
"ecmaFeatures": {
17+
"jsx": true
18+
}
19+
},
20+
"rules": {
21+
"react/prop-types": "off",
22+
"template-tag-spacing": "off",
23+
"no-unexpected-multiline": "off"
24+
},
25+
"settings": {
26+
"react": {
27+
"version": "detect"
28+
}
29+
}
30+
}

.gitignore

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.DS_Store
2-
node_modules
31
public
4-
/docs
2+
.cache
3+
node_modules
4+
*DS_Store
5+
*.env

Dockerfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM node:buster
2+
3+
# Create app directory
4+
WORKDIR /app
5+
6+
# Install app dependencies
7+
# RUN npm -g install serve
8+
RUN npm -g install gatsby-cli
9+
10+
COPY package*.json ./
11+
12+
RUN npm ci
13+
14+
# Bundle app source
15+
COPY . .
16+
17+
# Build static files
18+
RUN npm run build
19+
20+
# serve on port 8080
21+
# CMD ["serve", "-l", "tcp://0.0.0.0:8080", "public"]
22+
CMD ["gatsby", "serve", "--verbose", "--prefix-paths", "-p", "8080", "--host", "0.0.0.0"]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Qri, Inc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

config.js

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// config for all the things
2+
const config = {
3+
gatsby: {
4+
pathPrefix: '/',
5+
siteUrl: 'https://qri.io',
6+
gaTrackingId: null
7+
},
8+
header: {
9+
logo: 'https://qri.cloud/assets/qri-blob-logo-tiny.png',
10+
logoLink: '/',
11+
title: 'qri',
12+
githubUrl: '',
13+
helpUrl: '',
14+
tweetText: '',
15+
links: [
16+
{ text: 'About', link: '/about' },
17+
{ text: 'Blog', link: 'https://medium.com/qri-io' },
18+
{ text: 'Docs', link: '/docs' },
19+
{ text: 'Download', link: '/download' }
20+
],
21+
search: {
22+
enabled: false,
23+
indexName: '',
24+
algoliaAppId: process.env.GATSBY_ALGOLIA_APP_ID,
25+
algoliaSearchKey: process.env.GATSBY_ALGOLIA_SEARCH_KEY,
26+
algoliaAdminKey: process.env.ALGOLIA_ADMIN_KEY
27+
}
28+
},
29+
sidebar: {
30+
// modified from original config, this is now only for ordering top-level groups
31+
forcedNavOrder: [
32+
'getting-started',
33+
'dataset-components',
34+
'working-with-datasets',
35+
'integrating-qri',
36+
'reference'
37+
],
38+
links: [
39+
// { "text": "", "link": ""},
40+
],
41+
frontline: false,
42+
ignoreIndex: true
43+
},
44+
siteMetadata: {
45+
title: 'Qri.io',
46+
description: 'Qri Website and Documentation',
47+
ogImage: null,
48+
docsLocation: 'https://github.com/qri-io/website-refresh/blob/master/content',
49+
favicon: 'https://graphql-engine-cdn.hasura.io/img/hasura_icon_black.svg'
50+
},
51+
pwa: {
52+
enabled: false, // disabling this will also remove the existing service worker.
53+
manifest: {
54+
name: 'Gatsby Gitbook Starter',
55+
short_name: 'GitbookStarter',
56+
start_url: '/',
57+
background_color: '#6b37bf',
58+
theme_color: '#6b37bf',
59+
display: 'standalone',
60+
crossOrigin: 'use-credentials',
61+
icons: [
62+
{
63+
src: 'src/pwa-512.png',
64+
sizes: '512x512',
65+
type: 'image/png'
66+
}
67+
]
68+
}
69+
}
70+
}
71+
72+
module.exports = config

config.yaml

-80
This file was deleted.

content/_index.md

-115
This file was deleted.

0 commit comments

Comments
 (0)