ValidationError raised for empty or missing navbar.title
See original GitHub issueš Bug Report
The following errors were observed after upgrading to alpha 59:
ValidationError: "navbar.title" is not allowed to be empty
ValidationError: "navbar.title" is required
Currently, 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.
Have you read the Contributing Guidelines on issues?
Yes.
To Reproduce
(Write your steps here:)
- Upgrade to alpha 59
- Attempt to start dev server with an empty
navbar.title
value or missingnavbar.title
key.
Expected behavior
I expect navbar.title
to be optional and/or accept an empty string value.
(Write what you thought would happen.)
Actual Behavior
The following errors were observed:
ValidationError: "navbar.title" is not allowed to be empty
ValidationError: "navbar.title" is required
(Write what happened. Add screenshots, if applicable.)
Your Environment
- Docusaurus version used: alpha.59
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Chrome 84.0.4147.89
- Operating system and version (desktop or mobile): Mac OSX 10.15.6
Reproducible Demo
(Paste the link to an example repo, including a siteConfig.js
, and exact instructions to reproduce the issue.)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
iOS 16 beta | UINavigationControllā¦ | Apple Developer Forums
Overview. The UINavigationController / UINavigationBar title text no longer appears when updating a view controller's title property programatically.
Read more >Fix Missing CSRF Token Issues with Flask - Nick Janetakis
Learn how to fix bad request / CSRF token missing errors with Flask that stem from bugs with webkit based browsers.
Read more >Angular: Hide Navbar Menu from Login page - Loiane Groner
In this article we will learn two approaches to hide the Navbar Menu when displaying the Login page in Angular projects.
Read more >Bootstrap 5 Form Validation - W3Schools
The input fields will have a green (valid) or red (invalid) border to indicate what's missing in the form. You can also add...
Read more >Beginner Vue.js Tutorial with User Login - Auth0
This will leave you with a blank homepage and a nav bar with two links: Home ... but <%= htmlWebpackPlugin.options.title %> doesn't work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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)
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.