@adobe/parliament-source-changelog

Source changelog files into graphql

Usage no npm install needed!

<script type="module">
  import adobeParliamentSourceChangelog from 'https://cdn.skypack.dev/@adobe/parliament-source-changelog';
</script>

README

parliament-source-changelog

Creates a changelog from the folder specified in the plugins options.

Install

yarn add @adobe/parliament-source-changelog

How to use

// In your gatsby-config.js
const changelogTemplate = path.resolve(pathToTemplate);

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `changelog`,
        path: `${__dirname}/path/to/changelog`,
      },
    },
    {
      resolve: `@adobe/parliament-source-changelog`,
      options: {
        template: changelogTemplate,
        path: `${__dirname}/path/to/changelog`,
      },
    },
  ],
};

How to query

{
  allHeaderTabs {
    edges {
      node {
        id
        path
        title
      }
    }
  }
}

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.