-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Create doc banner #11464
Create doc banner #11464
Conversation
Hi @LizBaker 👋 Thanks for your pull request! Your PR is in a queue, and a writer will take a look soon. We generally publish small edits within one business day, and larger edits within three days. Gatsby Cloud will automatically generate a preview of your request, and will comment with a link when the preview is ready (usually 20 to 30 minutes). |
✅ docs-website-develop deploy preview ready
|
src/templates/docPage.js
Outdated
@@ -34,6 +37,8 @@ const splitTOCTitle = (title = '') => { | |||
return [titleText.join(' '), slug]; | |||
}; | |||
|
|||
const bannerHeight = '78px'; |
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.
can we SCREAMING_SNAKE_CASE
this?
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.
✨
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.
looks great! just left a couple comments
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.
✨ ✅ ✨
This adds a dismiss-able banner to specific docs based on frontmatter. When dismissed a value is set in local storage unique to the doc title. You can test this out on
/docs/mlops/get-started/intro-mlops/
and/docs/mlops/bring-your-own/mlops-byo/
which have temporary bannersfyi if you are logged into production it shouldn't show up at all 👀
TODO