Package Exports
- @adobe/parliament-transformer-navigation
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@adobe/parliament-transformer-navigation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
parliament-transformer-navigation
Allows you to specify your side navigation in json or yaml formats.
Install
yarn add @adobe/parliament-transformer-navigationHow 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.