Skip to content

Commit

Permalink
feat(clayui.com): Request formPackageMember from Gatsby and send it t…
Browse files Browse the repository at this point in the history
…o where it needs to go
  • Loading branch information
kresimir-coko committed Oct 5, 2020
1 parent 27af3ac commit caeb9dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions clayui.com/gatsby/createPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ module.exports = async ({actions, graphql}) => {
edges {
node {
fields {
formPackageMember
layout
nightly
redirect
Expand Down
7 changes: 7 additions & 0 deletions clayui.com/gatsby/onCreateNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = exports.onCreateNode = ({actions, getNode, node}) => {
description,
disableTOC,
draft,
formPackageMember,
indexVisible,
layout,
lexiconDefinition = '',
Expand Down Expand Up @@ -230,6 +231,12 @@ module.exports = exports.onCreateNode = ({actions, getNode, node}) => {
value: mainTabURL || '',
});

createNodeField({
name: 'formPackageMember',
node,
value: formPackageMember || false,
});

createNodeField({
name: 'layout',
node,
Expand Down
2 changes: 2 additions & 0 deletions clayui.com/src/templates/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ export const pageQuery = graphql`
frontmatter {
description
disableTOC
formPackageMember
lexiconDefinition
packageNpm
title
Expand Down Expand Up @@ -406,6 +407,7 @@ export const pageQuery = graphql`
node {
fields {
alwaysActive
formPackageMember
layout
packageVersion
packageStatus
Expand Down

0 comments on commit caeb9dc

Please sign in to comment.