Skip to content

Commit b7dec45

Browse files
committed
Upgrade to docz 2.0
Closes #11
1 parent 616b696 commit b7dec45

File tree

8 files changed

+7052
-10389
lines changed

8 files changed

+7052
-10389
lines changed

doczrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export default {
33
themeConfig: {
44
colors: { primary: '#294E80' },
55
},
6+
typescript: true,
67
};

gatsby-browser.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

gatsby-node.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

gatsby-ssr.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

package-lock.json

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

package.json

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,17 @@
66
"author": "Aryan Jabbari <aryanjabbari@gmail.com>",
77
"dependencies": {
88
"axios": "^0.18.1",
9-
"gatsby": "^2.8.2",
10-
"gatsby-image": "^2.1.2",
11-
"gatsby-plugin-layout": "^1.0.15",
12-
"gatsby-plugin-manifest": "^2.1.1",
13-
"gatsby-plugin-offline": "^2.1.0",
14-
"gatsby-plugin-react-helmet": "^3.0.12",
15-
"gatsby-plugin-sharp": "^2.1.3",
16-
"gatsby-plugin-typescript": "^2.0.15",
17-
"gatsby-source-filesystem": "^2.0.38",
18-
"gatsby-transformer-sharp": "^2.1.21",
199
"prop-types": "^15.7.2",
20-
"react": "^16.8.6",
21-
"react-dom": "^16.8.6",
22-
"react-helmet": "^5.2.1",
23-
"remark-external-links": "^4.0.0",
24-
"styled-components": "^4.2.1"
10+
"react-helmet": "^5.2.1"
2511
},
2612
"devDependencies": {
27-
"gatsby-theme-docz": "^1.2.0",
28-
"prettier": "^1.17.1"
13+
"docz": "^1.3.2",
14+
"docz-theme-default": "^1.2.0",
15+
"gatsby": "^2.15.21",
16+
"prettier": "^1.17.1",
17+
"react": "^16.9.0",
18+
"react-dom": "^16.8.6",
19+
"styled-components": "^4.4.0"
2920
},
3021
"keywords": [
3122
"gatsby",
@@ -34,12 +25,10 @@
3425
],
3526
"license": "MIT",
3627
"scripts": {
37-
"build": "gatsby build",
38-
"predevelop": "gatsby clean",
39-
"develop": "gatsby develop",
28+
"develop": "docz dev",
29+
"build": "docz build",
4030
"format": "prettier --write src/**/*.{js,jsx}",
4131
"start": "npm run develop",
42-
"serve": "gatsby serve",
4332
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
4433
},
4534
"repository": {

src/components/Seo.tsx

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import Helmet from 'react-helmet';
4-
import { useStaticQuery, graphql } from 'gatsby';
54

65
function SEO({ description, lang, meta, keywords, title }) {
76
const defaultKeywords = ['react', 'typescript'];
8-
const { site } = useStaticQuery(
9-
graphql`
10-
query {
11-
site {
12-
siteMetadata {
13-
title
14-
description
15-
author
16-
}
17-
}
18-
}
19-
`
20-
);
217

22-
const metaDescription = description || site.siteMetadata.description;
8+
const metaDescription =
9+
description || 'React and TypeScript: The Unofficial Documentation';
2310

2411
return (
2512
<Helmet
2613
htmlAttributes={{
2714
lang,
2815
}}
2916
title={title}
30-
titleTemplate={`%s | ${site.siteMetadata.title}`}
17+
titleTemplate={`%s | React and Typescript`}
3118
meta={[
3219
{
3320
name: `description`,
@@ -51,7 +38,7 @@ function SEO({ description, lang, meta, keywords, title }) {
5138
},
5239
{
5340
name: `twitter:creator`,
54-
content: site.siteMetadata.author,
41+
content: '@aryanjabbari',
5542
},
5643
]
5744
.concat({

src/components/image.tsx

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)