-
Notifications
You must be signed in to change notification settings - Fork 394
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
Let sidebar uppercase more than dvc
in labels made from slugs
#3602
Conversation
* Let sidebar uppercase more than `dvc` in labels made from slugs
@@ -23,12 +23,22 @@ | |||
const { titleCase } = require('title-case') | |||
const sidebar = require('../../../sidebar') | |||
|
|||
const uppercaseKeywords = ['dvc', 'cml', 'api', 'ml'] |
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.
@jorgeorpinel, these are the keywords that will be uppercased. Does the list look good?
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.
let's add MLEM, LDB
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.
List is now ['dvc', 'cml', 'api', 'mlem', 'ml', 'ldb']
:)
@@ -620,7 +620,6 @@ | |||
"slug": "dvclive-with-dvc" | |||
}, | |||
{ | |||
"label": "ML Frameworks", |
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.
Since the sidebar code automatically uppercases ml
and api
, these two labels can be taken off.
Gatsby Cloud Build Reportdvc.org 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 2m PerformanceLighthouse report
|
plugins/gatsby-theme-iterative-docs/src/utils/shared/sidebar.js
Outdated
Show resolved
Hide resolved
plugins/gatsby-theme-iterative-docs/src/utils/shared/sidebar.js
Outdated
Show resolved
Hide resolved
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.
Good stuff, @julieg18 - some optimization I think is possible that makes sense + some cleanup (?)
plugins/gatsby-theme-iterative-docs/src/utils/shared/sidebar.js
Outdated
Show resolved
Hide resolved
Last Q. There's also the opposite feature i.e. some words are kept lower case, like |
The |
Ah thanks for the info. Will mention in iterative/gatsby-theme-iterative#17 |
Fixes #3601