Skip to content

Commit 6b945cb

Browse files
author
Phil Hawksworth
authored
Merge pull request #64 from daviddarnes/main
Pre-launch fixes
2 parents 061ad31 + ca9218d commit 6b945cb

File tree

18 files changed

+16296
-78
lines changed

18 files changed

+16296
-78
lines changed

.env-example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
URL=http://localhost:8080
2+
GITHUB_TOKEN=
3+
SLACK_WEBHOOK_URL=
4+
GREETING="hi smashingconf"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Function example
3+
about: Add a new function example
4+
title: "Function example:"
5+
labels: function example
6+
assignees: ""
7+
---
8+
9+
### Summary
10+
11+
Please provide a brief description of the Netlify Function example.
12+
13+
### Checklist
14+
15+
Please provide the following with your example:
16+
17+
- title
18+
- URL to the source code
19+
- An additional URL for context or to a working demo
20+
- Suggested tags, e.g. "airtable", "gatsby", "email"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Tutorial
3+
about: Add a new function tutorial or article
4+
title: "Function tutorial:"
5+
labels: function tutorial
6+
assignees: ""
7+
---
8+
9+
### Summary
10+
11+
Please provide a brief description of the Netlify Function tutorial or article.
12+
13+
### Checklist
14+
15+
Please provide the following with your tutorial or article:
16+
17+
- title
18+
- description
19+
- URL to the article itself
20+
- date published

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**Please read the [contributing guidelines](https://github.com/netlify/functions.netlify.com/blob/master/.github/CONTRIBUTING.md) and [code of conduct](https://github.com/netlify/functions.netlify.com/blob/master/.github/CODE_OF_CONDUCT.md) before creating an issue.**
1+
**Please read the [contributing guidelines](https://github.com/netlify/functions/blob/master/.github/CONTRIBUTING.md) and [code of conduct](https://github.com/netlify/functions/blob/master/.github/CODE_OF_CONDUCT.md) before creating an issue.**
22

33
Please prefix your issue with one of the following: **[Bug]** **[Proposal]** **[Question]**.
44

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
**Please read the [contributing guidelines](https://github.com/netlify/functions.netlify.com/blob/master/.github/CONTRIBUTING.md) and [code of conduct](https://github.com/netlify/functions.netlify.com/blob/master/.github/CODE_OF_CONDUCT.md) before creating a pull request.**
1+
**Please read the [contributing guidelines](https://github.com/netlify/functions/blob/master/.github/CONTRIBUTING.md) and [code of conduct](https://github.com/netlify/functions/blob/master/.github/CODE_OF_CONDUCT.md) before creating a pull request.**
22

33
Please prefix your pull request with one of the following: **[Feature]** **[Fix]** **[Enhancement]**.
44

5-
If the pull request is a **fix** please **link to the related issue**, all bugs must have an [an issue created](https://github.com/netlify/functions.netlify.com/issues/new) before a fix is provided.
5+
If the pull request is a **fix** please **link to the related issue**, all bugs must have an [an issue created](https://github.com/netlify/functions/issues/new) before a fix is provided.
66

7-
If the pull request is a **feature** please **provide a summary of how it works**, as well as documentation in the [readme](https://github.com/netlify/functions.netlify.com/blob/master/README.md).
7+
If the pull request is a **feature** please **provide a summary of how it works**, as well as documentation in the [readme](https://github.com/netlify/functions/blob/master/README.md).

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Everything you ever wanted to know about Netlify Functions ⚡️
2222
```yaml
2323
---
2424
title: Example title # Add an example title
25-
code: ...daviddarnes/repo-name # Add the GitHub source path
25+
code: ...netlify/repo-name # Add the GitHub source path
2626
tags:
2727
- react # Add optional tags
2828
---
@@ -46,8 +46,9 @@ You'll need to generate a GitHub Access Token to retrieve stars and forks. Add t
4646

4747
```
4848
URL=http://localhost:8080
49-
GITHUB_TOKEN=XXXXXXXXX
50-
REPO=netlify/functions
49+
GITHUB_TOKEN=
50+
SLACK_WEBHOOK_URL=
51+
GREETING="hi smashingconf"
5152
```
5253

5354
## Options
@@ -71,3 +72,4 @@ All dependencies are development at the moment
7172
## Credits
7273

7374
- Andy Bell for [modern CSS reset](https://piccalil.li/blog/a-modern-css-reset/)
75+
- Yair Even Or for [Tagify](https://yaireo.github.io/tagify/)

netlify.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[build]
2+
publish = "dist"
3+
command = "npm run build"
4+
functions = "dist/functions"
5+
6+
[[redirects]]
7+
from = "/add-tutorial/"
8+
to = "/tutorials/"
9+
10+
[[redirects]]
11+
from = "/post-1/"
12+
to = "/"
13+
14+
[[redirects]]
15+
from = "/post-2/"
16+
to = "/"
17+
18+
[[redirects]]
19+
from = "/post-3/"
20+
to = "/"
21+
22+
[[plugins]]
23+
package = "netlify-plugin-image-optim"
24+
25+
[[plugins]]
26+
package = "netlify-plugin-minify-html"

0 commit comments

Comments
 (0)