Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
URL=http://localhost:8080
GITHUB_TOKEN=
SLACK_WEBHOOK_URL=
GREETING="hi smashingconf"
20 changes: 20 additions & 0 deletions .github/ISSSUE_TEMPLATE/function-example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Function example
about: Add a new function example
title: "Function example:"
labels: function example
assignees: ""
---

### Summary

Please provide a brief description of the Netlify Function example.

### Checklist

Please provide the following with your example:

- title
- URL to the source code
- An additional URL for context or to a working demo
- Suggested tags, e.g. "airtable", "gatsby", "email"
20 changes: 20 additions & 0 deletions .github/ISSSUE_TEMPLATE/tutorial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Tutorial
about: Add a new function tutorial or article
title: "Function tutorial:"
labels: function tutorial
assignees: ""
---

### Summary

Please provide a brief description of the Netlify Function tutorial or article.

### Checklist

Please provide the following with your tutorial or article:

- title
- description
- URL to the article itself
- date published
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**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.**
**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.**

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

Expand Down
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
**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.**
**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.**

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

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.
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.

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).
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).
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Everything you ever wanted to know about Netlify Functions ⚡️
```yaml
---
title: Example title # Add an example title
code: ...daviddarnes/repo-name # Add the GitHub source path
code: ...netlify/repo-name # Add the GitHub source path
tags:
- react # Add optional tags
---
Expand All @@ -46,8 +46,9 @@ You'll need to generate a GitHub Access Token to retrieve stars and forks. Add t

```
URL=http://localhost:8080
GITHUB_TOKEN=XXXXXXXXX
REPO=netlify/functions
GITHUB_TOKEN=
SLACK_WEBHOOK_URL=
GREETING="hi smashingconf"
```

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

- Andy Bell for [modern CSS reset](https://piccalil.li/blog/a-modern-css-reset/)
- Yair Even Or for [Tagify](https://yaireo.github.io/tagify/)
26 changes: 26 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[build]
publish = "dist"
command = "npm run build"
functions = "dist/functions"

[[redirects]]
from = "/add-tutorial/"
to = "/tutorials/"

[[redirects]]
from = "/post-1/"
to = "/"

[[redirects]]
from = "/post-2/"
to = "/"

[[redirects]]
from = "/post-3/"
to = "/"

[[plugins]]
package = "netlify-plugin-image-optim"

[[plugins]]
package = "netlify-plugin-minify-html"
Loading