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

Commit 4059ea2

Browse files
committed
Merge branch 'develop' of github.com:freesewing/freesewing.dev into develop
2 parents 2772315 + ede0c09 commit 4059ea2

82 files changed

Lines changed: 19333 additions & 24839 deletions

Some content is hidden

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

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
GATSBY_LANGUAGE="en"
66
GATSBY_ALGOLIA_API_ID="insertValueHere"
77
GATSBY_ALGOLIA_SEARCH_KEY="insertValueHere"
8-
GATSBY_ALGOLIA_UPDATE_KEY="insertValueHere"
8+
ALGOLIA_UPDATE_KEY="insertValueHere"

.github/dependabot.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
open-pull-requests-limit: 10
9+
ignore:
10+
- dependency-name: tlds
11+
versions:
12+
- 1.220.0
13+
- 1.221.0
14+
- dependency-name: remark-jargon
15+
versions:
16+
- 2.14.0
17+
- 2.15.0
18+
- 2.15.1
19+
- dependency-name: core-js
20+
versions:
21+
- 3.10.2
22+
- 3.11.0
23+
- 3.8.3
24+
- 3.9.0
25+
- dependency-name: gatsby-plugin-mdx
26+
versions:
27+
- 2.3.0
28+
- dependency-name: algoliasearch
29+
versions:
30+
- 4.9.0
31+
- dependency-name: "@freesewing/core"
32+
versions:
33+
- 2.14.0
34+
- dependency-name: styled-components
35+
versions:
36+
- 5.2.3
37+
- dependency-name: gatsby-image
38+
versions:
39+
- 2.10.0
40+
- 2.11.0
41+
- 3.0.0
42+
- 3.1.0
43+
- 3.2.0
44+
- dependency-name: gatsby-remark-jargon
45+
versions:
46+
- 2.14.0
47+
- dependency-name: "@bugsnag/js"
48+
versions:
49+
- 7.9.0
50+
- dependency-name: gatsby-plugin-offline
51+
versions:
52+
- 3.10.0
53+
- 3.10.1
54+
- 3.9.0
55+
- dependency-name: gatsby-remark-copy-linked-files
56+
versions:
57+
- 2.10.0
58+
- dependency-name: gatsby-plugin-manifest
59+
versions:
60+
- 2.11.0
61+
- 2.12.0
62+
- 2.12.1
63+
- dependency-name: gatsby-transformer-sharp
64+
versions:
65+
- 2.11.0
66+
- 2.12.0
67+
- dependency-name: gatsby-transformer-remark
68+
versions:
69+
- 2.15.0
70+
- 2.16.0
71+
- dependency-name: gatsby
72+
versions:
73+
- 2.31.1
74+
- 2.32.0
75+
- 2.32.2
76+
- dependency-name: gatsby-plugin-nprogress
77+
versions:
78+
- 2.9.0
79+
- dependency-name: gatsby-remark-prismjs
80+
versions:
81+
- 3.12.0
82+
- dependency-name: gatsby-plugin-react-helmet
83+
versions:
84+
- 3.9.0
85+
- dependency-name: gatsby-remark-autolink-headers
86+
versions:
87+
- 2.10.0
88+
- dependency-name: gatsby-plugin-netlify
89+
versions:
90+
- 2.10.0

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![FreeSewing](https://freesewing.org/banner.jpg)
22
<p align="center">
3-
<a href="https://chat.freesewing.org" title="Chat with us on Discord"><img src="https://img.shields.io/discord/698854858052075530?label=Chat%20on%20Discord" alt="Chat with us on Discord"/></a>
3+
<a href="https://discord.freesewing.org" title="Chat with us on Discord"><img src="https://img.shields.io/discord/698854858052075530?label=Chat%20on%20Discord" alt="Chat with us on Discord"/></a>
44
<a href="https://freesewing.org/patrons/join"><img src="https://badgen.net/badge/become/a%20Patron/FF5B77" alt="Become a Patron"></a>
55
<a href="https://app.netlify.com/sites/fs-org-en/deploys"><img src="https://api.netlify.com/api/v1/badges/c87c4827-2039-4a65-b1c2-0ba6e12cbf0d/deploy-status" alt=Deploys by Netlify" /></a>
66
</p>
@@ -18,7 +18,7 @@ for parametric design of sewing patterns. It's a modular system (check our list
1818
of [plugins](https://freesewing.dev/reference/plugins) and getting started is as simple as:
1919

2020
```bash
21-
npm init freesewing-pattern
21+
npx create-freesewing-pattern
2222
```
2323

2424
The [getting started](https://freesewing.dev/guides/getting-started/) section on [freesewing.dev](https://freesewing.dev/) is a good
@@ -41,7 +41,7 @@ should [become a patron](https://freesewing.org/patrons/join).
4141

4242
- 💻 Makers website: [freesewing.org](https://freesewing.org)
4343
- 💻 Developers website: [freesewing.dev](https://freesewing.dev)
44-
- 💬 Chat: On Discord via [chat.freesewing.org](https://chat.freesewing.org/)
44+
- 💬 Chat: On Discord via [discord.freesewing.org](https://discord.freesewing.org/)
4545
- 🐦 Twitter: [@freesewing_org](https://twitter.com/freesewing_org)
4646
- 📷 Instagram: [@freesewing_org](https://instagram.com/freesewing_org)
4747

@@ -52,7 +52,7 @@ See [the license file](https://github.com/freesewing/freesewing/blob/develop/LIC
5252

5353
## Where to get help 🤯
5454

55-
Our [chatrooms on Discord](https://chat.freesewing.org) are the best place to ask questions,
55+
Our [chatrooms on Discord](https://discord.freesewing.org) are the best place to ask questions,
5656
share your feedback, or just hang out.
5757

5858
If you want to report a problem, please [create an issue](https://github.com/freesewing/freesewing/issues/new).

gatsby-browser.js

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

gatsby-config.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
require('dotenv').config()
22
const searchData = require('./src/algolia')
3-
const jargon = require('@freesewing/i18n').jargon.en
43

54

65
const plugins = [
76
`gatsby-plugin-sass`,
8-
// Automatically restores your cache and caches new files within the Netlify cache folder.
9-
// To reset the cache, hit the Clear build cache checkbox in the Netlify app.
10-
'gatsby-plugin-netlify-cache',
117
{
128
resolve: 'gatsby-plugin-nprogress',
139
options: {
@@ -38,7 +34,8 @@ const plugins = [
3834
options: {
3935
maxWidth: 800,
4036
showCaptions: ['title', 'alt'],
41-
markdownCaptions: true
37+
markdownCaptions: true,
38+
backgroundColor: `, 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12)`
4239
}
4340
}
4441
],
@@ -47,6 +44,8 @@ const plugins = [
4744
resolve: 'gatsby-remark-images',
4845
options: {
4946
maxWidth: 800,
47+
showCaptions: ['title', 'alt'],
48+
backgroundColor: `transparent`,
5049
}
5150
},
5251
{
@@ -58,12 +57,13 @@ const plugins = [
5857
}
5958
},
6059
'gatsby-remark-copy-linked-files',
61-
'gatsby-remark-autolink-headers',
62-
'gatsby-remark-smartypants',
6360
{
64-
resolve: 'gatsby-remark-jargon',
65-
options: { jargon }
66-
}
61+
resolve: 'gatsby-remark-autolink-headers',
62+
options: {
63+
elements: ['h2','h3']
64+
}
65+
},
66+
'gatsby-remark-smartypants',
6767
]
6868
}
6969
},
@@ -90,16 +90,16 @@ const plugins = [
9090

9191
// Only update the Algolia indices when having the ALGOLIA_UPDATE_KEY set.
9292
// Most likely on deployment to production only
93-
//if (process.env.CONTEXT === 'production' && process.env.HEAD === 'master') {
94-
// plugins.push({
95-
// resolve: 'gatsby-plugin-algolia',
96-
// options: {
97-
// appId: process.env.GATSBY_ALGOLIA_API_ID,
98-
// apiKey: process.env.GATSBY_ALGOLIA_UPDATE_KEY,
99-
// queries: searchData('en'),
100-
// chunkSize: 10000
101-
// }
102-
// })
103-
//}
93+
if (process.env.CONTEXT === 'production' && process.env.HEAD === 'main') {
94+
plugins.push({
95+
resolve: 'gatsby-plugin-algolia',
96+
options: {
97+
appId: process.env.GATSBY_ALGOLIA_API_ID,
98+
apiKey: process.env.ALGOLIA_UPDATE_KEY,
99+
queries: searchData(),
100+
chunkSize: 10000
101+
}
102+
})
103+
}
104104

105105
module.exports = { plugins: plugins }

0 commit comments

Comments
 (0)