mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 12:07:58 +02:00
fix(v2): swizzle should receive correct load context (#1844)
* fix(v2): swizzle should receive correct load context * new prettier version * niits
This commit is contained in:
parent
b82e211546
commit
d96b5f99b9
21 changed files with 480 additions and 460 deletions
|
@ -174,9 +174,7 @@ class HeaderNav extends React.Component {
|
|||
: '';
|
||||
const id = langPart + versionPart + link.doc;
|
||||
if (!Metadata[id]) {
|
||||
let errorStr = `Processing the following \`doc\` field in \`headerLinks\` within \`siteConfig.js\`: '${
|
||||
link.doc
|
||||
}'`;
|
||||
let errorStr = `Processing the following \`doc\` field in \`headerLinks\` within \`siteConfig.js\`: '${link.doc}'`;
|
||||
if (id === link.doc) {
|
||||
errorStr +=
|
||||
' It looks like there is no document with that id that exists in your docs directory. Please double check the spelling of your `doc` field and the `id` fields of your docs.';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue