Nobody Preheats Microwaves

    gatsby-source-yuque

    0.4.0 • Public • Published

    gatsby-source-yuque

    NPM version LICENSE version

    Source plugin for pulling data into Gatsby from 语雀 API.

    Install

    npm install --save gatsby-source-yuque

    How to use

    // In your gatsby-config.js
    plugins: [
      {
        resolve: 'gatsby-source-yuque',
        options: {
          login: 'raincal',
          repo: 'blog',
          mdNameFormat: 'title'
        }
      }
    ]

    Options

    Name Default Description
    baseUrl https://www.yuque.com/api/v2/ base url
    login user/team unique name
    repo repo name
    mdNameFormat title title or slug
    timeout 10000 timeout specifies the number of milliseconds before the request times out

    Query for all nodes

    {
      allYuqueDoc {
        edges {
          node {
            title
            slug
            cover
            description
            created_at
            childMarkdownRemark {
              html
            }
          }
        }
      }
    }

    LICENSE

    MIT

    Install

    npm i gatsby-source-yuque

    DownloadsWeekly Downloads

    5

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    22.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • raincal