@adobe/parliament-transformer-navigation

1.4.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.4.0
    16
    • latest

Version History

Package Sidebar

Install

npm i @adobe/parliament-transformer-navigation

Weekly Downloads

10

Version

1.4.0

License

Apache-2.0

Unpacked Size

79.6 kB

Total Files

25

Last publish

Collaborators

  • stopp-adobe
  • dylandepass
  • djaeggi
  • adobehalls
  • fullcolorcoder
  • marbec
  • tripod
  • garthdb
  • lazd
  • adobe-admin
  • patrickfulton
  • trieloff
  • shazron
  • krisnye
  • dcpfsdk
  • natebaldwin
  • devongovett
  • aspro83
  • symanovi
  • dpfister
  • stefan-guggisberg
  • korra
  • rofe
  • kptdobe