An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

Welcome to gatsby-source-websites 👋



Version

Documentation


Maintenance


License: MIT

> 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)_