The following errors were observed after upgrading to alpha 59:
ValidationError: "navbar.title" is not allowed to be emptyValidationError: "navbar.title" is requiredCurrently, none of our D2 sites use navbar.title as we rely heavily on our logos to identify our sites. I suspect the same might be true for other D2 sites listed under Showcase.
Yes.
(Write your steps here:)
navbar.title value or missing navbar.title key.I expect navbar.title to be optional and/or accept an empty string value.
(Write what you thought would happen.)
The following errors were observed:
ValidationError: "navbar.title" is not allowed to be emptyValidationError: "navbar.title" is required(Write what happened. Add screenshots, if applicable.)
(Paste the link to an example repo, including a siteConfig.js, and exact instructions to reproduce the issue.)
We're in the same boat, Navbar's implementation explicitly allows to hide the title by setting it to null but the new config validation logic requires it to be a non-empty string.
Thanks, I've opened a PR to allow navbar.title to accept empty string, null or undefined (so the field is optional now).
Feel free to let me know if there's anything else I should change.
Thanks @teikjun, the change looks good to me.
On a related note, I wanted to offer some feedback or a suggestion. The title: Joi.string().required() change wasn't mentioned anywhere in the release notes - at least, I didn't spot it. A question for the maintainers: have you considered adding a tool like commitizen to your toolchain to help with versioning and changelog?
This is a mistake for which we'll release a fix soon.
@sserrata We use proper commit messages already and lerna-changelog to generate our changelog. This change does appear in the changelog under "validation", as we started validating user-provided site config, theme config, plugin option config in this release.
I'm sorry this has been a breaking change for you in practice. BTW, the title has always been documented as a required field (https://v2.docusaurus.io/docs/docusaurus.config.js#title)
Most helpful comment
This is a mistake for which we'll release a fix soon.
@sserrata We use proper commit messages already and lerna-changelog to generate our changelog. This change does appear in the changelog under "validation", as we started validating user-provided site config, theme config, plugin option config in this release.
I'm sorry this has been a breaking change for you in practice. BTW, the title has always been documented as a required field (https://v2.docusaurus.io/docs/docusaurus.config.js#title)