https://github.com/glweems/gatsby-source-websites
A gatsby source plugin for creating nodes from your website projects
https://github.com/glweems/gatsby-source-websites
Last synced: 8 months ago
JSON representation
A gatsby source plugin for creating nodes from your website projects
- Host: GitHub
- URL: https://github.com/glweems/gatsby-source-websites
- Owner: glweems
- License: mit
- Created: 2019-08-08T16:02:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T06:39:42.000Z (over 3 years ago)
- Last Synced: 2025-03-01T00:32:35.002Z (over 1 year ago)
- Language: TypeScript
- Size: 433 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to gatsby-source-websites 👋
> a starter repo for creating gatsby plugins in typescript
### 🏠 [Homepage](https://github.com/glweems/gatsby-plugin-template-typescript.git)
## Install
```sh
npm install gatsby-source-websites
```
or
```sh
yarn add gatsby-source-websites
```
## Setup
```javascript
{
plugins: [
{
resolve: `gatsby-source-websites`
options: {
websites: [
{
name: `My Super Fresh Website`,
slug: `my-super-fresh-website`,
url: `https://superfreshsite.com`,
// Optional
description: `This is a super fresh site I build because I'm super fresh`,
repo: `https://github.com/glweems/superfreshsite`
},
{
// Add another website with same info
}
]
// Website screenshot options
sizes: ['1920x1080','1920x1080'],
delay: 10,
crop: false,
// Defaults are
// sizes: ['1920x1080'],
// delay: 2,
// crop: true,
}
}
]
}
```
## Usage
Query info through graphql
```graphql
query MyWebsites {
allWebsites {
nodes {
name
slug
url
description
repo
}
}
}
```
## Author
👤 **Garrett Weems **
- Github: [@glweems](https://github.com/glweems)
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/glweems/gatsby-plugin-template-typescript/issues).
## Show your support
Give a ⭐️ if this project helped you!
## 📝 License
Copyright © 2019 [Garrett Weems ](https://github.com/glweems).
This project is [MIT](https://github.com/glweems/gatsby-plugin-template-typescript/blob/master/LICENSE) licensed.
---
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_