gatsby-source-wikipedia

5.13.1 • Public • Published

gatsby-source-wikipedia

Source plugin for pulling articles from wikipedia.

Demo

https://guess-gatsby-wikipedia-demo.firebaseapp.com

Install

npm install gatsby-source-wikipedia

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-source-wikipedia",
      options: {
        // For each query, the plugin will go to Wikipedia's API and search for the query
        // and fetch the top articles to the specified limit.
        queries: [
          {
            query: `progressive web app`,
            limit: 5,
          },
          {
            query: `cheese`,
            limit: 10,
          },
          {
            query: `developers`,
            limit: 10,
          },
        ],
      },
    },
  ],
}

Package Sidebar

Install

npm i gatsby-source-wikipedia

Weekly Downloads

310

Version

5.13.1

License

MIT

Unpacked Size

41.7 kB

Total Files

8

Last publish

Collaborators

  • kathmbeck
  • pieh
  • tylerbarnes
  • fk
  • daniellewgatsby
  • kylemathews
  • freiksenet
  • dschau
  • wardpeet
  • m-allanson
  • sidharthachatterjee
  • moocar