@adobe/parliament-transformer-navigation

Allows you to specify your side navigation in json or yaml formats.

Usage no npm install needed!

<script type="module">
  import adobeParliamentTransformerNavigation from 'https://cdn.skypack.dev/@adobe/parliament-transformer-navigation';
</script>

README

parliament-transformer-navigation

Allows you to specify your side navigation in json or yaml formats.

Install

yarn add @adobe/parliament-transformer-navigation

How to use

// In your gatsby-config.js
const gitInfo = GitUrlParse(process.env.GATSBY_SOURCE)
const gitRepoInfo = {
  org: gitInfo.owner,
  name: gitInfo.name,
  branch: process.env.GATSBY_SOURCE_BRANCH,
}
module.exports = {
  plugins: [
    {
      resolve: `@adobe/parliament-transformer-navigation`,
      options: {
        gitRepoInfo: gitRepoInfo
      },
    },
  ],
}

How to query

{
  parliamentNavigation {
    homePage
    pages
  }
}

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.