mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 04:57:05 +02:00
* fix: add docs tag validation to solve #5478 fix: add docs tag validation to solve #5478 * Update docFrontMatter.ts * Update docs-create-doc.mdx * improve tag validation error messages + tests * improve tags doc * fix test Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
812327155b
commit
194f429c1f
5 changed files with 46 additions and 5 deletions
|
@ -314,7 +314,7 @@ describe('validateBlogPostFrontMatter tags', () => {
|
|||
{tags: ['hello', {label: 'tagLabel', permalink: '/tagPermalink'}]},
|
||||
],
|
||||
invalidFrontMatters: [
|
||||
[{tags: ''}, 'must be an array'],
|
||||
[{tags: ''}, '"tags" does not look like a valid FrontMatter Yaml array.'],
|
||||
[{tags: ['']}, 'not allowed to be empty'],
|
||||
],
|
||||
// See https://github.com/facebook/docusaurus/issues/4642
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue