Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 1c420c5

Browse files
committed
fix: update gatsby monorepo (#17369)
0 parents  commit 1c420c5

11 files changed

+31151
-0
lines changed

.gitignore

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# dotenv environment variables file
55+
.env
56+
57+
# gatsby files
58+
.cache/
59+
public
60+
61+
# Mac files
62+
.DS_Store
63+
64+
# Yarn
65+
yarn-error.log
66+
.pnp/
67+
.pnp.js
68+
# Yarn Integrity file
69+
.yarn-integrity

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"endOfLine": "lf",
3+
"semi": false,
4+
"singleQuote": false,
5+
"tabWidth": 2,
6+
"trailingComma": "es5"
7+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 Gatsbyjs
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.

README.md

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<p align="center">
2+
<a href="https://www.gatsbyjs.org">
3+
<img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />
4+
</a>
5+
</p>
6+
<h1 align="center">
7+
Starter for the official Gatsby blog core theme
8+
</h1>
9+
10+
Quickly get started using the Gatsby blog core theme! This starter creates a new Gatsby site that is preconfigured to work with the [official Gatsby blog core theme](https://www.npmjs.com/package/gatsby-theme-blog-core), allowing you to get started creating a child theme quickly.
11+
12+
## 🚀 Quick start
13+
14+
1. **Create a Gatsby site.**
15+
16+
Use the Gatsby CLI to create a new site, specifying the blog theme starter.
17+
18+
```sh
19+
# create a new Gatsby site using the blog theme starter
20+
gatsby new my-themed-blog https://github.com/gatsbyjs/gatsby-starter-blog-theme-core
21+
```
22+
23+
2. **Start developing.**
24+
25+
Navigate into your new site’s directory and start it up.
26+
27+
```sh
28+
cd my-themed-blog/
29+
gatsby develop
30+
```
31+
32+
3. **Open the code and start customizing!**
33+
34+
Your site is now running at `http://localhost:8000`!
35+
36+
To get started, check out the guide to [using the Gatsby blog theme starter](http://gatsbyjs.org/docs/themes/using-a-gatsby-theme), or the longer, [more detailed tutorial](http://gatsbyjs.org/tutorial/using-a-theme).
37+
38+
## 🧐 What's inside?
39+
40+
Here are the top-level files and directories you'll see in a site created using the blog theme starter:
41+
42+
```
43+
gatsby-starter-blog-theme-core
44+
├── content
45+
│ ├── assets
46+
│ │ └── avatar.png
47+
│ └── posts
48+
│ ├── hello-world.mdx
49+
│ └── my-second-post.mdx
50+
├── .gitignore
51+
├── .prettierrc
52+
├── gatsby-config.js
53+
├── LICENSE
54+
├── package-lock.json
55+
├── package.json
56+
└── README.md
57+
```
58+
59+
1. **`/content`**: A content folder holding assets that the theme expects to exist. This will vary from theme to theme -- this starter is set up to get you started with the blog theme, which expects an image asset for your avatar, and blog post content. Replace the avatar image file, delete the demo posts, and add your own!
60+
61+
2. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
62+
63+
3. **`.prettierrc`**: This file tells [Prettier](https://prettier.io/) which configuration it should use to lint files.
64+
65+
4. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. When using themes, it's where you'll include the theme plugin, and any customization options the theme provides.
66+
67+
5. **`LICENSE`**: Gatsby is licensed under the MIT license.
68+
69+
6. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
70+
71+
7. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.
72+
73+
8. **`README.md`**: A text file containing useful reference information about your project.
74+
75+
## 🎓 Learning Gatsby
76+
77+
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/).
78+
79+
Here are some places to start:
80+
81+
### Themes
82+
83+
- To learn more about Gatsby themes specifically, we recommend checking out the [theme docs](https://www.gatsbyjs.org/docs/themes/).
84+
85+
### General
86+
87+
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
88+
89+
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Reference Guides_ and _Gatsby API_ sections in the sidebar.

content/assets/avatar.png

5.97 KB
Loading

content/posts/hello-world.mdx

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Hello World (example)
3+
date: 2019-04-15
4+
---
5+
6+
Hello, world! This is a demo post for `gatsby-theme-blog`.
7+
8+
Delete me, and get writing!
9+
10+
```js:title=gatsby-config.js
11+
module.exports = {
12+
plugins: [
13+
"gatsby-theme-blog", // highlight-line
14+
"gatsby-theme-notes"
15+
]
16+
};
17+
```
18+
19+
This is another paragraph after the code block.
20+
21+
## This is a secondary heading
22+
23+
```jsx
24+
import React from "react";
25+
import { ThemeProvider } from "theme-ui";
26+
import theme from "./theme";
27+
28+
export default props => (
29+
<ThemeProvider theme={theme}>{props.children}</ThemeProvider>
30+
);
31+
```

content/posts/my-second-post.mdx

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: My Second Post! (example)
3+
date: 2019-05-15
4+
---
5+
6+
Wow! I love blogging so much already.
7+
8+
Did you know that "despite its name, salted duck eggs can also be made from chicken eggs, though the taste and texture will be somewhat different, and the egg yolk will be less rich."? ([Wikipedia Link](http://en.wikipedia.org/wiki/Salted_duck_egg))
9+
10+
Yeah, I didn't either.

gatsby-config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
plugins: [
3+
{
4+
resolve: `gatsby-theme-blog-core`,
5+
options: {},
6+
},
7+
],
8+
}

0 commit comments

Comments
 (0)