-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(structure): rename deck
to context
#51
Conversation
Nice! Should we make it so |
I've been working in @e0ipso any chance you can take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this will be breaking BC for projects using this theme. The component props are part of the interface, via the component shadowing.
Let's make sure that the example site has some ADRs with deck and some with context to ensure BC.
@andy-blum do you think you'll have time to pick this back up? |
@e0ipso I've addad an ADR with the |
@@ -17,7 +17,7 @@ module.exports = { | |||
const siteUrl = site.siteMetadata.siteUrl; | |||
return { | |||
title: edge.node.frontmatter.title, | |||
description: edge.node.frontmatter.deck, | |||
description: edge.node.frontmatter.context, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also grab deck
in case a site upgrades but it's still using the old format?
@@ -40,7 +40,7 @@ module.exports = { | |||
node { | |||
frontmatter { | |||
title | |||
deck | |||
context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also grab deck
in case a site upgrades but it's still using the old format? Also applies in other places.
Closing this in favor of our site refactor. |
This PR updates the theme to use
context
in place ofdeck
in ADR frontmatter, as "deck" is not the most intuitive name for this field.