mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
feat(logger): new "url" format, add double quotes around paths (#7019)
* refactor(logger): add double quotes around paths * Introduce url formatter * Fix
This commit is contained in:
parent
2bcac29cd4
commit
a307da0b9f
7 changed files with 21 additions and 11 deletions
|
@ -65,7 +65,7 @@ function normalizeSidebar(
|
|||
throw new Error(
|
||||
logger.interpolate`Invalid sidebar items collection code=${JSON.stringify(
|
||||
sidebar,
|
||||
)} in ${place}: it must either be an array of sidebar items or a shorthand notation (which doesn't contain a code=${'type'} property). See path=${'https://docusaurus.io/docs/sidebar/items'} for all valid syntaxes.`,
|
||||
)} in ${place}: it must either be an array of sidebar items or a shorthand notation (which doesn't contain a code=${'type'} property). See url=${'https://docusaurus.io/docs/sidebar/items'} for all valid syntaxes.`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue